From 1532c1bf4a3236ce9056f33e51ddfebeff79ed5a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 17 Nov 2025 07:06:52 +0000
Subject: (최겸) 구매 피드백 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/bidding/create/bidding-create-dialog.tsx | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'components/bidding/create/bidding-create-dialog.tsx')

diff --git a/components/bidding/create/bidding-create-dialog.tsx b/components/bidding/create/bidding-create-dialog.tsx
index 4ef403c9..30550ca4 100644
--- a/components/bidding/create/bidding-create-dialog.tsx
+++ b/components/bidding/create/bidding-create-dialog.tsx
@@ -43,6 +43,7 @@ import { ProcurementManagerSelector } from '@/components/common/selectors/procur
 import type { PurchaseGroupCodeWithUser } from '@/components/common/selectors/purchase-group-code/purchase-group-code-service'
 import type { ProcurementManagerWithUser } from '@/components/common/selectors/procurement-manager/procurement-manager-service'
 import { createBidding } from '@/lib/bidding/service'
+import { useSession } from 'next-auth/react'
 
 interface BiddingCreateDialogProps {
   form: UseFormReturn<CreateBiddingSchema>
@@ -50,6 +51,9 @@ interface BiddingCreateDialogProps {
 }
 
 export function BiddingCreateDialog({ form, onSuccess }: BiddingCreateDialogProps) {
+  const { data: session } = useSession()
+  const userId = session?.user?.id ? Number(session.user.id) : null;
+
   const [isOpen, setIsOpen] = React.useState(false)
   const [isSubmitting, setIsSubmitting] = React.useState(false)
 
@@ -290,7 +294,7 @@ export function BiddingCreateDialog({ form, onSuccess }: BiddingCreateDialogProp
         },
       }
 
-      const result = await createBidding(biddingData, '1') // 실제로는 현재 사용자 ID
+      const result = await createBidding(biddingData, userId?.toString() || '') // 실제로는 현재 사용자 ID
 
       if (result.success) {
         toast.success("입찰이 성공적으로 생성되었습니다.")
@@ -1147,9 +1151,6 @@ export function BiddingCreateDialog({ form, onSuccess }: BiddingCreateDialogProp
                             찾아보세요
                           </label>
                         </p>
-                        <p className="text-xs text-gray-500">
-                          PDF, DOC, DOCX, XLS, XLSX, PNG, JPG, JPEG 파일을 업로드할 수 있습니다
-                        </p>
                       </div>
                     </div>
                   </div>
@@ -1217,9 +1218,6 @@ export function BiddingCreateDialog({ form, onSuccess }: BiddingCreateDialogProp
                             찾아보세요
                           </label>
                         </p>
-                        <p className="text-xs text-gray-500">
-                          PDF, DOC, DOCX, XLS, XLSX, PNG, JPG, JPEG 파일을 업로드할 수 있습니다
-                        </p>
                       </div>
                     </div>
                   </div>
-- 
cgit v1.2.3

