Skip to content

Commit

Permalink
Merge pull request #43455 from bernhardoj/fix/43184-error-shown-with-…
Browse files Browse the repository at this point in the history
…delay

Fix error above Submit button is delayed by a moment when sending invoice without merchant
  • Loading branch information
yuwenmemon authored Jun 18, 2024
2 parents 637ca47 + 7f6b422 commit 11b66a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MoneyRequestConfirmationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ function MoneyRequestConfirmationList({
<FormHelpMessage
style={[styles.ph1, styles.mb2]}
isError
message={!shouldShowReadOnlySplits ? debouncedFormError && translate(debouncedFormError) : translate(formError)}
message={isTypeSplit && !shouldShowReadOnlySplits ? debouncedFormError && translate(debouncedFormError) : translate(formError)}
/>
)}

Expand All @@ -830,6 +830,7 @@ function MoneyRequestConfirmationList({
);
}, [
isReadOnly,
isTypeSplit,
iouType,
selectedParticipants.length,
confirm,
Expand Down

0 comments on commit 11b66a0

Please sign in to comment.