diff --git a/frontend/gostarkme-web/animations/StardustAnimation.tsx b/frontend/gostarkme-web/animations/StardustAnimation.tsx index a64467a..da9d5c1 100644 --- a/frontend/gostarkme-web/animations/StardustAnimation.tsx +++ b/frontend/gostarkme-web/animations/StardustAnimation.tsx @@ -5,7 +5,9 @@ export const StardustAnimation = () => { useEffect(() => { const canvas = canvasRef.current; + if (canvas == null) return; const ctx = canvas.getContext('2d'); + if (ctx == null) return; let animationFrameId: number; // Set canvas size