From bea5e637ff863b9287e58a4931bd506103c500c5 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Wed, 11 Oct 2023 22:42:24 +0100 Subject: [PATCH] Do not show Show more in case of send money request --- src/components/MoneyRequestConfirmationList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/MoneyRequestConfirmationList.js b/src/components/MoneyRequestConfirmationList.js index 90dc35e21bb2..b842fc18b05b 100755 --- a/src/components/MoneyRequestConfirmationList.js +++ b/src/components/MoneyRequestConfirmationList.js @@ -209,7 +209,9 @@ function MoneyRequestConfirmationList(props) { // A flag and a toggler for showing the rest of the form fields const [shouldExpandFields, toggleShouldExpandFields] = useReducer((state) => !state, false); - const shouldShowAllFields = props.isDistanceRequest || shouldExpandFields || !shouldShowSmartScanFields; + + // Do not hide fields in case of send money request + const shouldShowAllFields = props.isDistanceRequest || shouldExpandFields || !shouldShowSmartScanFields || isTypeSend; // In Send Money flow, we don't allow the Merchant or Date to be edited. const shouldShowDate = shouldShowAllFields && !isTypeSend;