[Condenser] Fix body length check on post and comment

Words
176
Reading
1 min
Listen
Play
9y

[Condenser] Fix body length check on post and comment

image.png


Issue

Uncaught Error: [sprintf] property "maxKb" does not exist error encountered when body length exceeds maximum

Solution

Fix the syntax of the problematic code to send the correct prop to the internationalizer.

Summary

Currently, there is an error that is encountered when a user inputs too many characters in the post or comment reply editor. When this error is encountered, it prevents the reply editor from properly displaying further errors until the user completely solves the body length error (without being told it is too long). This pull request fixes the syntax of the translator that is being used when the error message is triggered. The max body length was also changed from 100 to 65 in this pull request.

Credits

This development contribution has been created in response to this bug report by @nationalpark

Screenshots

  • error -
    screen shot 2017-11-19 at 1 28 31 pm
  • error fixed - screen shot 2017-11-19 at 1 27 46 pm

Links



Posted on Utopian.io - Rewarding Open Source Contributors

[Condenser] Fix body length check on post and comment | Ecency