Skip to content

Commit

Permalink
feat(charge-percent) allow long decimal on rate
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jul 25, 2023
1 parent b6d8552 commit 9a3ed38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/plans/ChargePercentage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const ChargePercentage = ({
label={translate('text_62a0b7107afa2700a65ef6f6')}
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
beforeChangeFormatter={['positiveNumber', 'decimal']}
beforeChangeFormatter={['positiveNumber', 'chargeDecimal']}
error={_get(formikProps.errors, `charges.${chargeIndex}.${propertyCursor}.rate`)}
disabled={disabled}
placeholder={translate('text_62a0b7107afa2700a65ef700')}
Expand Down Expand Up @@ -302,7 +302,7 @@ export const ChargePercentage = ({
<Typography color="textSecondary">
{translate('text_62ff5d01a306e274d4ffcc65', {
percentageFee: intlFormatNumber(Number(valuePointer?.rate) / 100 || 0, {
minimumFractionDigits: 2,
maximumFractionDigits: 15,
style: 'percent',
}),
})}
Expand Down

0 comments on commit 9a3ed38

Please sign in to comment.