fix: use correct delimiter on credit card zero values #1280
Reference in New Issue
Block a user
Delete Branch "gariasf/fix-card-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After recent fixes, the credit card view displays 0 by default on Minimum Payment and Annual Fee. However, the format is wrong. On zero values, the two digits after the delimiter are the decimals, and this is the current behaviour on other sections, like the dashboard.
For example, this is correct:


But this is not:
This PR resolves this issue, the credit card Minimum Payment and Annual Fee now display the correct delimiter on empty values:

I haven't seen any issues related to this, so I can't link one.
First time contributing and first time using ruby, I'll be happy to hear about your feedback.
Cheers.
Looks good!