Skip to content

Commit

Permalink
Edit copy
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Oct 8, 2024
1 parent c5541a2 commit 5039147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,14 @@ export const EditSpendingCapModal = ({
setCustomSpendingCapInputValue(formattedSpendingCap.toString());
}, [customSpendingCapInputValue, formattedSpendingCap]);

const showDecimalError = useMemo(() => {
return (
decimals &&
parseInt(decimals, 10) < countDecimalDigits(customSpendingCapInputValue)
);
}, [decimals, customSpendingCapInputValue]);
const showDecimalError =
decimals &&
parseInt(decimals, 10) < countDecimalDigits(customSpendingCapInputValue);

return (
<Modal
isOpen={isOpenEditSpendingCapModal}
onClose={() => handleCancel()}
onClose={handleCancel}
isClosedOnEscapeKey
isClosedOnOutsideClick
className="edit-spending-cap-modal"
Expand Down

0 comments on commit 5039147

Please sign in to comment.