Skip to content

Commit

Permalink
Fix decimal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoder authored Sep 17, 2024
1 parent e269751 commit fc0621b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/organization/Donation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function Keyboard({ amount, setAmount} : any) {
const [error, setError] = useState(false);
function pressNumber(amount: string, number: number) {
if (
parseFloat(amount.replace("$", "0") + number) > 9999 ||
parseFloat(amount.replace("$", "0") + number) > 9999.99 ||
(amount == "$" && number == 0) ||
amount[amount.length - 3] == "."
) {
Expand Down

0 comments on commit fc0621b

Please sign in to comment.