From 54c3c7b3d1611dee19278417702d6bc2ad08499b Mon Sep 17 00:00:00 2001 From: Xeno Suter Date: Sat, 28 Oct 2023 23:10:25 +0200 Subject: [PATCH] Fix profile setting page --- frontend/src/app/settings/page.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/settings/page.jsx b/frontend/src/app/settings/page.jsx index b2e59de..a7c261e 100644 --- a/frontend/src/app/settings/page.jsx +++ b/frontend/src/app/settings/page.jsx @@ -42,14 +42,14 @@ export default function Settings() { }, []); const isActive = (tempChar) => { - return userData.characteristics.includes(tempChar); + return userData?.characteristics.includes(tempChar); }; return ( <>

Profile

- {userData && characteristics.length > 0 ? ( + {userData.username && characteristics.length > 0 ? ( <>