Skip to content

Commit

Permalink
Do not show Show more in case of send money request
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Oct 11, 2023
1 parent 35d5cfa commit bea5e63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/MoneyRequestConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bea5e63

Please sign in to comment.