diff --git a/hwe/ts/components/GameInfo.vue b/hwe/ts/components/GameInfo.vue
index b9c8424d..39db0aa3 100644
--- a/hwe/ts/components/GameInfo.vue
+++ b/hwe/ts/components/GameInfo.vue
@@ -26,7 +26,7 @@
현재: {{ globalInfo.year }}年 {{ globalInfo.month }}月 ({{ globalInfo.turnterm }}분 턴 서버)
- 전체 접속자 수: {{ globalInfo.onlineUserCnt.toLocaleString() }}명
+ 전체 접속자 수: {{ (globalInfo.onlineUserCnt ?? 0).toLocaleString() }}명
턴당 갱신횟수: {{ globalInfo.apiLimit.toLocaleString() }}회
@@ -110,7 +110,7 @@ const tournamentStep = ref({
});
const tournamentTime = ref(new Date());
-function updateFrontInfo(frontInfo: GetFrontInfoResponse){
+function updateFrontInfo(frontInfo: GetFrontInfoResponse) {
const global = frontInfo.global;
globalInfo.value = global;
@@ -133,8 +133,7 @@ function updateFrontInfo(frontInfo: GetFrontInfoResponse){
tournamentTime.value = parseTime(global.tournamentTime);
}
-watch(frontInfo, updateFrontInfo, {immediate: true});
-
+watch(frontInfo, updateFrontInfo, { immediate: true });
diff --git a/hwe/ts/defs/API/Global.ts b/hwe/ts/defs/API/Global.ts
index 4353b11d..dd130c2d 100644
--- a/hwe/ts/defs/API/Global.ts
+++ b/hwe/ts/defs/API/Global.ts
@@ -122,8 +122,8 @@ export type GetFrontInfoResponse = {
lastVoteID: number;
develCost: number;
noticeMsg: number;
- onlineNations: string; //TODO: string[]으로 변경
- onlineUserCnt: number;
+ onlineNations: string | null; //TODO: string[]으로 변경
+ onlineUserCnt: number | null;
apiLimit: number;
auctionCount: number;
isTournamentActive: boolean;