Merge pull request #16 from nightbug-xx/mct40z-codex/친구정보-출력-문제-수정

Add friend dashboard page
This commit is contained in:
nightbug-xx 2025-06-11 11:14:55 +09:00 committed by GitHub
commit 3707fda83a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ interface Homework {
title: string title: string
reset_type: string reset_type: string
clear_count: number clear_count: number
complete_cnt?: number complete_cnt: number
} }
export default function FriendCharacterDashboard() { export default function FriendCharacterDashboard() {
@ -83,7 +83,7 @@ export default function FriendCharacterDashboard() {
{Array.from({ length: hw.clear_count }).map((_, idx) => ( {Array.from({ length: hw.clear_count }).map((_, idx) => (
<Checkbox <Checkbox
key={idx} key={idx}
checked={idx < (hw.complete_cnt ?? 0)} checked={idx < hw.complete_cnt}
disabled disabled
size="small" size="small"
/> />