ba-cafe

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d61f796d7285830f29507431f541d1457b5aebb7
parent 0e454634c7d6f80c1d12c30f9046e1cd422fa087
Author: Sunny <kajimalu10@gmail.com>
Date:   Wed, 20 Aug 2025 12:07:20 +0900

fix 'nextChange' is never reassigned. Use 'const' instead

Diffstat:
Msrc/app/page.tsx | 1-
Msrc/components/TimerDashboard.tsx | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/app/page.tsx b/src/app/page.tsx @@ -24,7 +24,6 @@ export default function Home() { const [tapHistory, setTapHistory] = useState<TapEntry[]>([]); const [ticket1Time, setTicket1Time] = useState<Date | null>(null); const [ticket2Time, setTicket2Time] = useState<Date | null>(null); - const [isOshiTap, setIsOshiTap] = useState<boolean>(false); const [driveFileId, setDriveFileId] = useState<string | null>(null); const [isSyncing, setIsSyncing] = useState(false); diff --git a/src/components/TimerDashboard.tsx b/src/components/TimerDashboard.tsx @@ -34,7 +34,7 @@ export default function TimerDashboard({ const studentsChangeRemaining = useMemo(() => { // 04:00または16:00までの残り時間を計算 const hour = now.getHours(); - let nextChange = new Date(now); + const nextChange = new Date(now); if (hour < 4) { nextChange.setHours(4, 0, 0, 0); } else if (hour < 16) {