From 14db2323a592aaf5fc22ae192a2627258f12ae23 Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Wed, 11 Sep 2024 00:09:04 -0700 Subject: [PATCH] small fix --- frontend/src/components/landing/HeroASCIIArt.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/landing/HeroASCIIArt.tsx b/frontend/src/components/landing/HeroASCIIArt.tsx index 1d1b797d..9b547d4e 100644 --- a/frontend/src/components/landing/HeroASCIIArt.tsx +++ b/frontend/src/components/landing/HeroASCIIArt.tsx @@ -356,7 +356,7 @@ const getCharForPosition = ( x: number, y: number, ): string => { - if (!grid[y][x]) return " "; + if (!grid || !grid[y] || !grid[y][x]) return " "; const top = y > 0 && grid[y - 1][x]; const bottom = y < grid.length - 1 && grid[y + 1][x];