From b758daf291c714a519832638446d5f28274c59f1 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Mon, 30 Sep 2024 10:58:55 +0700 Subject: [PATCH] fix: Approval button is loaded indefinitely --- src/libs/actions/IOU.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index 5262cc4dc4ff..e86239135207 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -6523,7 +6523,10 @@ function getReportFromHoldRequestsOnyxData( { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${optimisticExpenseReport.reportID}`, - value: optimisticExpenseReport, + value: { + ...optimisticExpenseReport, + unheldTotal: 0, + }, }, // add preview report action to main chat {