From ef4c533ebacc2cdc97e518f30e9a9350004fcdfb Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 28 Apr 2025 02:13:30 +0000
Subject: ~20250428 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/tbe/table/invite-vendors-dialog.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'lib/tbe/table/invite-vendors-dialog.tsx')

diff --git a/lib/tbe/table/invite-vendors-dialog.tsx b/lib/tbe/table/invite-vendors-dialog.tsx
index 87467e57..59535278 100644
--- a/lib/tbe/table/invite-vendors-dialog.tsx
+++ b/lib/tbe/table/invite-vendors-dialog.tsx
@@ -39,6 +39,7 @@ interface InviteVendorsDialogProps
   rfqId: number
   showTrigger?: boolean
   onSuccess?: () => void
+  hasMultipleRfqIds?: boolean
 }
 
 export function InviteVendorsDialog({
@@ -46,6 +47,7 @@ export function InviteVendorsDialog({
   rfqId,
   showTrigger = true,
   onSuccess,
+  hasMultipleRfqIds,
   ...props
 }: InviteVendorsDialogProps) {
   const [isInvitePending, startInviteTransition] = React.useTransition()
@@ -105,10 +107,14 @@ export function InviteVendorsDialog({
       />
     </div>
   )
-
+  if (hasMultipleRfqIds) {
+    toast.error("동일한 RFQ에 대해 선택해주세요");
+    return;
+  } 
   // Desktop Dialog
   if (isDesktop) {
     return (
+      
       <Dialog {...props}>
         {showTrigger ? (
           <DialogTrigger asChild>
-- 
cgit v1.2.3

