summaryrefslogtreecommitdiff
path: root/lib/vendor-evaluation-submit
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-evaluation-submit')
-rw-r--r--lib/vendor-evaluation-submit/service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vendor-evaluation-submit/service.ts b/lib/vendor-evaluation-submit/service.ts
index 63a6bdb6..7be18fb8 100644
--- a/lib/vendor-evaluation-submit/service.ts
+++ b/lib/vendor-evaluation-submit/service.ts
@@ -340,9 +340,9 @@ export async function getEvaluationSubmissionCompleteness(submissionId: number)
) : Promise.resolve([{ total: 0, completed: 0, averageScore: null }])
]);
- // 실제 완료된 항목 수
- const generalCompleted = generalStats[0]?.completed || 0;
- const esgCompleted = esgStats[0]?.completed || 0;
+ // 실제 완료된 항목 수 (숫자로 변환 0707 최겸 수정)
+ const generalCompleted = Number(generalStats[0]?.completed || 0);
+ const esgCompleted = Number(esgStats[0]?.completed || 0);
const esgAverage = parseFloat(esgStats[0]?.averageScore?.toString() || '0');
// 🎯 실제 평가 항목 수를 기준으로 완성도 계산