You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a admin, I want decimal config be working in frontend.
Details
In plugin currency setting we have Number of Decimals config. If I set it to 0, in frontend it still shows 2 decimal places.
I see that useCurrencyFormater is DonationAmountLevels and it uses Intl.NumberFormat which accepts minimumFractionDigits option.
This option is used in Currency Switcher already so it should be implemented and used in other amount fields.
Expected Behavior
Number of Decimals actually does what it is supposed to do
Steps to Reproduce
Create a form
Make Number of Decimals setting 0 or 1
Add form to page
See that form amount decimals are not the same as in settings
Acceptance Criteria
Number of Decimals actually does what it is supposed to do
The text was updated successfully, but these errors were encountered:
User Story
As a admin, I want decimal config be working in frontend.
Details
In plugin currency setting we have
Number of Decimals
config. If I set it to 0, in frontend it still shows 2 decimal places.I see that useCurrencyFormater is DonationAmountLevels and it uses
Intl.NumberFormat
which acceptsminimumFractionDigits
option.This option is used in Currency Switcher already so it should be implemented and used in other amount fields.
Expected Behavior
Number of Decimals
actually does what it is supposed to doSteps to Reproduce
Number of Decimals
setting 0 or 1Acceptance Criteria
Number of Decimals
actually does what it is supposed to doThe text was updated successfully, but these errors were encountered: