Skip to content

Commit

Permalink
Merge pull request #39326 from dukenv0307/fix/39306
Browse files Browse the repository at this point in the history
Fix skeleton display on send money request flow
  • Loading branch information
mountiny authored Apr 2, 2024
2 parents 6c3e0d8 + 2d40a29 commit 332dcf5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/home/report/ReportActionsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,12 @@ function ReportActionsView({

const reportPreviewAction = ReportActionsUtils.getReportPreviewAction(report.chatReportID ?? '', report.reportID);
const moneyRequestActions = reportActions.filter(
(action) => action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && action.originalMessage && action.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE,
(action) =>
action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU &&
action.originalMessage &&
(action.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.CREATE ||
Boolean(action.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY && action.originalMessage.IOUDetails) ||
action.originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.TRACK),
);

if (report.total && moneyRequestActions.length < (reportPreviewAction?.childMoneyRequestCount ?? 0) && isEmptyObject(transactionThreadReport)) {
Expand Down

0 comments on commit 332dcf5

Please sign in to comment.