summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/[lng]/evcp/(evcp)/vendors/[id]/info/credit/page.tsx10
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">
{/* 매출순위, 매입순위, 지분관계 */}