diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-08 11:27:11 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-08 11:27:11 +0000 |
| commit | d23e59b405b0be567592ce967793356d1b11d559 (patch) | |
| tree | f55c3a799ecf9f7adfb0ff23d75a2d69ff9281fd /app | |
| parent | 92f8184de161de55d52f68e58d6dbc24fd3819a9 (diff) | |
(김준회) 벤더 신용평가 조회 화면 fix
Diffstat (limited to 'app')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/vendors/[id]/info/credit/page.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/vendors/[id]/info/credit/page.tsx b/app/[lng]/evcp/(evcp)/vendors/[id]/info/credit/page.tsx index e90969b5..c6d6e2aa 100644 --- a/app/[lng]/evcp/(evcp)/vendors/[id]/info/credit/page.tsx +++ b/app/[lng]/evcp/(evcp)/vendors/[id]/info/credit/page.tsx @@ -129,12 +129,12 @@ export default function CreditInfoPage() { const [error, setError] = useState<string | null>(null); // 데이터 로딩 함수 - const loadCreditData = async (reno: string, creditGb: string) => { + const loadCreditData = async (vendorId: string, creditGb: string) => { setLoading(true); setError(null); try { - const result = await getCreditInfo(reno, creditGb); + const result = await getCreditInfo(vendorId, creditGb); if (result && result.length > 0) { setCreditData(result[0]); } else { @@ -200,6 +200,12 @@ export default function CreditInfoPage() { </div> )} + {!loading && !error && !creditData && ( + <div className="bg-muted/50 border border-muted rounded-md p-8 text-center"> + <p className="text-muted-foreground font-medium">신용평가 정보가 없습니다</p> + </div> + )} + {creditData && ( <div className="space-y-6"> {/* 매출순위, 매입순위, 지분관계 */} |
