Skip to content

Commit c8b0a5d

Browse files
committed
fix: Workspace chat still displays GBR in LHN after changing report workspace
1 parent 67e472c commit c8b0a5d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/libs/actions/IOU.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ import {
9595
getTrackExpenseActionableWhisper,
9696
isActionableTrackExpense,
9797
isCreatedAction,
98+
isDeletedAction,
9899
isMoneyRequestAction,
99100
isReportPreviewAction,
100101
} from '@libs/ReportActionsUtils';
@@ -9272,7 +9273,12 @@ function getIOUReportActionToApproveOrPay(chatReport: OnyxEntry<OnyxTypes.Report
92729273
// eslint-disable-next-line deprecation/deprecation
92739274
const policy = getPolicy(iouReport?.policyID);
92749275
const shouldShowSettlementButton = canIOUBePaid(iouReport, chatReport, policy) || canApproveIOU(iouReport, policy);
9275-
return action.childReportID?.toString() !== excludedIOUReportID && action.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW && shouldShowSettlementButton;
9276+
return (
9277+
action.childReportID?.toString() !== excludedIOUReportID &&
9278+
action.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW &&
9279+
shouldShowSettlementButton &&
9280+
!isDeletedAction(action)
9281+
);
92769282
});
92779283
}
92789284

0 commit comments

Comments
 (0)