Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Money request skeleton is shown when delete IOU in offline mode #27753

Merged
merged 9 commits into from
Sep 22, 2023
3 changes: 2 additions & 1 deletion src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ function MoneyRequestPreview(props) {
isHovered={isScanning}
/>
)}
{_.isEmpty(props.transaction) ? (
{_.isEmpty(props.transaction) &&
!_.contains([CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE], lodashGet(props.action, 'pendingAction')) ? (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking message.isDeletedParentAction || pendingAction === 'delete'

<MoneyRequestSkeletonView />
) : (
<View style={styles.moneyRequestPreviewBoxText}>
Expand Down
Loading