Skip to content

Commit 8e80ffb

Browse files
committed
cleaning
1 parent 72d282f commit 8e80ffb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pages/iou/steps/MoneyRequestAmountForm.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ function MoneyRequestAmountForm({amount, taxAmount, currency, isEditing, forward
8383
const isTaxAmountForm = Navigation.getActiveRoute().includes('taxAmount');
8484

8585
const decimals = CurrencyUtils.getCurrencyDecimals(currency);
86-
const selectedAmountAsString = amount ? CurrencyUtils.convertToFrontendAmountAsString(amount) : '';
87-
86+
const selectedAmountAsString = CurrencyUtils.convertToFrontendAmountAsString(amount);
8887
const [currentAmount, setCurrentAmount] = useState(selectedAmountAsString);
8988
const [formError, setFormError] = useState('');
9089
const [shouldUpdateSelection, setShouldUpdateSelection] = useState(true);
@@ -119,7 +118,7 @@ function MoneyRequestAmountForm({amount, taxAmount, currency, isEditing, forward
119118
};
120119

121120
const initializeAmount = useCallback((newAmount) => {
122-
const frontendAmount = newAmount ? CurrencyUtils.convertToFrontendAmountAsString(newAmount) : '';
121+
const frontendAmount = CurrencyUtils.convertToFrontendAmountAsString(newAmount);
123122
setCurrentAmount(frontendAmount);
124123
setSelection({
125124
start: frontendAmount.length,

0 commit comments

Comments
 (0)