We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001958f commit 539ab90Copy full SHA for 539ab90
src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx
@@ -189,7 +189,7 @@ function BaseReportActionContextMenu({
189
const requestParentReportAction = useMemo(() => {
190
if (isMoneyRequestReport || isInvoiceReport) {
191
if (transactionThreadReportID === CONST.FAKE_REPORT_ID) {
192
- return Object.values(childReportActions ?? {}).find((action) => !isDeletedAction(action) && action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU);
+ return Object.values(childReportActions ?? {}).find((action) => action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && !isDeletedAction(action));
193
}
194
if (!paginatedReportActions || !transactionThreadReport?.parentReportActionID) {
195
return undefined;
0 commit comments