[Condenser] Fix body length check on post and comment
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 -
- error fixed -
Links
- SteemLiberator Condenser With This PR Live
- Condenser Pull Request #2031
- @nationalpark - Bug Hunting: Steem Post Size Limit
Posted on Utopian.io - Rewarding Open Source Contributors