Skip to content

Commit

Permalink
Reset amount on reset button click
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushiktd committed Jul 10, 2024
1 parent bf86b78 commit b1eda3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MoneyRequestAmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function MoneyRequestAmountInput(
end: frontendAmount.length,
});
}
}, [amount, shouldKeepUserInput, shouldResetAmount]);
}, [amount, currency, formatAmountOnBlur, shouldKeepUserInput, onFormatAmount, shouldResetAmount, onResetAmount, currentAmount]);

// Modifies the amount to match the decimals for changed currency.
useEffect(() => {
Expand Down

0 comments on commit b1eda3e

Please sign in to comment.