Skip to content

Commit 8a9577f

Browse files
JulesssssOSBotify
authored andcommitted
Merge pull request #62526 from nkdengineer/fix/62504
fix: Incorrect view button on the paid expense (cherry picked from commit ebdce61) (cherry-picked to staging by arosiclair)
1 parent 248dbf0 commit 8a9577f

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)