Skip to content

Commit

Permalink
Merge pull request #28458 from tienifr/fix/regression-28417
Browse files Browse the repository at this point in the history
[CP Staging] fix: regression 28417
  • Loading branch information
mountiny authored Oct 1, 2023
2 parents 35b91ea + 5b6af37 commit 9e96d04
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 9e96d04

Please sign in to comment.