Bläddra i källkod

fix: null type error

GyDi 3 år sedan
förälder
incheckning
4f56c38599
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/pages/profile.tsx

+ 1 - 0
src/pages/profile.tsx

@@ -22,6 +22,7 @@ const ProfilePage = () => {
 
   useEffect(() => {
     if (profiles.current == null) return;
+    if (!profiles.items) profiles.items = [];
 
     const profile = profiles.items![profiles.current];
     if (!profile) return;