From 8838be351f3071ba43350925311d1ef8247970d0 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 19 Dec 2023 12:35:01 +0400 Subject: [PATCH] pass amount and currency --- src/pages/iou/steps/MoneyRequestAmountForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/iou/steps/MoneyRequestAmountForm.js b/src/pages/iou/steps/MoneyRequestAmountForm.js index c9075d896deb..414e942aa384 100644 --- a/src/pages/iou/steps/MoneyRequestAmountForm.js +++ b/src/pages/iou/steps/MoneyRequestAmountForm.js @@ -228,8 +228,8 @@ function MoneyRequestAmountForm({amount, currency, isEditing, forwardedRef, onCu const backendAmount = CurrencyUtils.convertToBackendAmount(Number.parseFloat(currentAmount)); initializeAmount(backendAmount); - onSubmitButtonPress(currentAmount); - }, [onSubmitButtonPress, currentAmount, initializeAmount]); + onSubmitButtonPress({amount: currentAmount, currency}); + }, [onSubmitButtonPress, currentAmount, currency, initializeAmount]); /** * Input handler to check for a forward-delete key (or keyboard shortcut) press.