Skip to content

Commit ebdce61

Browse files
authored
Merge pull request #62526 from nkdengineer/fix/62504
fix: Incorrect view button on the paid expense
2 parents d6681cf + ed070ec commit ebdce61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SelectionList/Search/ActionCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function ActionCell({
5151
const text = isChildListItem ? translate(actionTranslationsMap[CONST.SEARCH.ACTION_TYPES.VIEW]) : translate(actionTranslationsMap[action]);
5252
const shouldUseViewAction = action === CONST.SEARCH.ACTION_TYPES.VIEW || (parentAction === CONST.SEARCH.ACTION_TYPES.PAID && action === CONST.SEARCH.ACTION_TYPES.PAID);
5353

54-
if ((parentAction !== CONST.SEARCH.ACTION_TYPES.PAID && action === CONST.SEARCH.ACTION_TYPES.PAID) || (action === CONST.SEARCH.ACTION_TYPES.DONE && !isChildListItem)) {
54+
if (!isChildListItem && ((parentAction !== CONST.SEARCH.ACTION_TYPES.PAID && action === CONST.SEARCH.ACTION_TYPES.PAID) || action === CONST.SEARCH.ACTION_TYPES.DONE)) {
5555
return (
5656
<View style={[StyleUtils.getHeight(variables.h28), styles.justifyContentCenter]}>
5757
<Badge

0 commit comments

Comments
 (0)