diff --git a/BE/src/study-logs/study-logs.service.ts b/BE/src/study-logs/study-logs.service.ts index e1caad8..c687cc7 100644 --- a/BE/src/study-logs/study-logs.service.ts +++ b/BE/src/study-logs/study-logs.service.ts @@ -148,7 +148,9 @@ export class StudyLogsService { LIMIT 1`, [user_id, start_date, end_date], ); - return primary_category[0].name ?? null; + return primary_category[0]?.name === null + ? '기타' + : primary_category[0]?.name ?? null; } async groupByCategory(user_id: number, date: string): Promise { const studyLogsByCategory = await this.studyLogsRepository.query(