From 5b6af37324950371dfb40cfa3673df1368ea7aea Mon Sep 17 00:00:00 2001 From: tienifr Date: Fri, 29 Sep 2023 17:11:27 +0700 Subject: [PATCH] fix: regression 28417 --- src/pages/iou/steps/MoneyRequestAmountForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/steps/MoneyRequestAmountForm.js b/src/pages/iou/steps/MoneyRequestAmountForm.js index c4fc29957179..cc918e3ee3df 100644 --- a/src/pages/iou/steps/MoneyRequestAmountForm.js +++ b/src/pages/iou/steps/MoneyRequestAmountForm.js @@ -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,