From 4e8f1a4a71e77d89d46e47f48bbca5606c00eab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:27:46 -0500 Subject: [PATCH] fix: ? --- src/app/tools/tankopedia/[id]/components/Videos.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tools/tankopedia/[id]/components/Videos.tsx b/src/app/tools/tankopedia/[id]/components/Videos.tsx index c7e5475ea..2d867d08d 100644 --- a/src/app/tools/tankopedia/[id]/components/Videos.tsx +++ b/src/app/tools/tankopedia/[id]/components/Videos.tsx @@ -9,7 +9,7 @@ export function Videos() { const isFullScreen = useFullScreen(); const tank = useDuel((state) => state.protagonist!.tank); const awaitedVideoDefinitions = use(videoDefinitions); - const videos = awaitedVideoDefinitions[tank.id].videos ?? []; + const videos = awaitedVideoDefinitions[tank.id]?.videos ?? []; if (isFullScreen) return null;