Skip to content

Commit

Permalink
Merge pull request Expensify#48557 from Krishna2323/krishna2323/issue…
Browse files Browse the repository at this point in the history
…/48366

fix: Dupe detection - 'Keep this one' button appears when there is a paid expense.
  • Loading branch information
marcochavezf authored Sep 5, 2024
2 parents 8339bb2 + b8f546c commit c0b2ca5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function MoneyRequestPreviewContent({
const duplicates = useMemo(() => TransactionUtils.removeSettledAndApprovedTransactions(allDuplicates), [allDuplicates]);

// When there are no settled transactions in duplicates, show the "Keep this one" button
const shouldShowKeepButton = allDuplicates.length === duplicates.length;
const shouldShowKeepButton = !!(allDuplicates.length && duplicates.length && allDuplicates.length === duplicates.length);

const hasDuplicates = duplicates.length > 0;

Expand Down

0 comments on commit c0b2ca5

Please sign in to comment.