Skip to content

Commit

Permalink
Update function for changing currentAmount after update amount
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenjaHorbach committed Apr 22, 2024
1 parent 06b51b1 commit a0176b5
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 @@ -164,7 +164,7 @@ function MoneyRequestAmountInput(
return;
}
const frontendAmount = amount ? CurrencyUtils.convertToFrontendAmount(amount).toString() : '';
setNewAmount(frontendAmount);
setCurrentAmount(frontendAmount);
setSelection({
start: frontendAmount.length,
end: frontendAmount.length,
Expand Down

0 comments on commit a0176b5

Please sign in to comment.