Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

fix: use correct delimiter on credit card zero values#1280

Merged
zachgoll merged 1 commit intomaybe-finance:mainfrom
gariasf:gariasf/fix-card-format
Oct 10, 2024
Merged

fix: use correct delimiter on credit card zero values#1280
zachgoll merged 1 commit intomaybe-finance:mainfrom
gariasf:gariasf/fix-card-format

Conversation

@gariasf
Copy link
Contributor

@gariasf gariasf commented Oct 10, 2024

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:
image
But this is not:
image

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

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.

Copy link
Contributor

@zachgoll zachgoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@zachgoll zachgoll merged commit 977da34 into maybe-finance:main Oct 10, 2024
@gariasf gariasf deleted the gariasf/fix-card-format branch October 10, 2024 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants