Skip to content

Commit

Permalink
fix: regression 28417
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Sep 29, 2023
1 parent 6093340 commit 5b6af37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/steps/MoneyRequestAmountForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function MoneyRequestAmountForm({amount, currency, isEditing, forwardedRef, onCu
if (!currency || !_.isNumber(amount)) {
return;
}
const amountAsStringForState = CurrencyUtils.convertToFrontendAmount(amount).toString();
const amountAsStringForState = amount ? CurrencyUtils.convertToFrontendAmount(amount).toString() : '';
setCurrentAmount(amountAsStringForState);
setSelection({
start: amountAsStringForState.length,
Expand Down

0 comments on commit 5b6af37

Please sign in to comment.