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;