[Condenser] Fix body length check on post and comment

in #utopian-io8 years ago

[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

Sort:  

Thank you for the contribution. It has been approved.

[utopian-moderator]

Hey @netuoso I am @utopian-io. I have just upvoted you at 11% Power!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x