From bc59ba19e2eaf0a178e5fe97b444c2c82b9d54c0 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 6 Feb 2024 15:20:19 +0800 Subject: [PATCH] clear pending action when fails --- src/libs/actions/IOU.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 569b6b26b728..9b1ffb4433ca 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -2808,6 +2808,7 @@ function deleteMoneyRequest(transactionID: string, reportAction: OnyxTypes.Repor value: { [reportPreviewAction?.reportActionID ?? '']: { ...reportPreviewAction, + pendingAction: null, errors: ErrorUtils.getMicroSecondOnyxError('iou.error.genericDeleteFailureMessage'), }, },