From c35678e46be8aedf4532353d6207a8526a34117a Mon Sep 17 00:00:00 2001 From: M4Dd0x is here ! <77256586+m4dd0c@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:39:15 +0530 Subject: [PATCH] fixed typeError: replay.ts --- frontend/src/ts/test/replay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/test/replay.ts b/frontend/src/ts/test/replay.ts index e84f81016fd7..7df2c8b95b19 100644 --- a/frontend/src/ts/test/replay.ts +++ b/frontend/src/ts/test/replay.ts @@ -170,7 +170,7 @@ function loadOldReplay(): number { startingIndex = i + 1; } }); - const time = Math.floor(replayData[startingIndex].time / 1000); + const time = Math.floor(replayData[startingIndex]?.time / 1000); updateStatsString(time); return startingIndex;