From a2e0785c8749c4d3766ecf3b70edfb7c2fe4df20 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 21 Nov 2025 09:44:33 +0000
Subject: (임수민) 준법 Red Flag 해제, 코멘트 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../basic-contract-detail-table-toolbar-actions.tsx      | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

(limited to 'lib/basic-contract/status-detail/basic-contract-detail-table-toolbar-actions.tsx')

diff --git a/lib/basic-contract/status-detail/basic-contract-detail-table-toolbar-actions.tsx b/lib/basic-contract/status-detail/basic-contract-detail-table-toolbar-actions.tsx
index daa410f0..e62a6cb7 100644
--- a/lib/basic-contract/status-detail/basic-contract-detail-table-toolbar-actions.tsx
+++ b/lib/basic-contract/status-detail/basic-contract-detail-table-toolbar-actions.tsx
@@ -414,15 +414,17 @@ export function BasicContractDetailTableToolbarActions({
             const contractIds = redFlagResolutionContracts.map(c => c.id)
             const result = await requestRedFlagResolution(contractIds)
 
-            if (result.success) {
-                toast.success(result.message)
-                table.toggleAllPageRowsSelected(false)
-            } else {
-                toast.error(result.message)
-            }
+            toast.success("RED FLAG 해소요청 결재가 상신되었습니다.", {
+                description: `결재 ID: ${result.approvalId}`,
+            })
+            table.toggleAllPageRowsSelected(false)
         } catch (error) {
             console.error("RED FLAG 해소요청 오류:", error)
-            toast.error("RED FLAG 해소요청 중 오류가 발생했습니다")
+            toast.error(
+                error instanceof Error
+                    ? error.message
+                    : "RED FLAG 해소요청 중 오류가 발생했습니다."
+            )
         } finally {
             setLoading(false)
         }
-- 
cgit v1.2.3

