From 734c9493f7ef9f1d4c3142bb25abf02a7e304db3 Mon Sep 17 00:00:00 2001 From: heroking777 Date: Wed, 10 Jun 2026 00:45:19 +0900 Subject: [PATCH] fix: resolve issue #93067 --- src/libs/ReportPreviewActionUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/ReportPreviewActionUtils.ts b/src/libs/ReportPreviewActionUtils.ts index 1c1d9d96b7fa..6289fac2b09c 100644 --- a/src/libs/ReportPreviewActionUtils.ts +++ b/src/libs/ReportPreviewActionUtils.ts @@ -81,6 +81,10 @@ function canApprove(report: Report, currentUserAccountID: number, reportMetadata if (hasPendingDEWApprove(reportMetadata, isDEWPolicy)) { return false; } + // Add the new guard clause here + if (reportMetadata?.isApprovalPending) { + return false; + } const isPreventSelfApprovalEnabled = policy?.preventSelfApproval; const isReportSubmitter = isCurrentUserSubmitter(report);