Skip to content

Commit

Permalink
Fix profile setting page
Browse files Browse the repository at this point in the history
  • Loading branch information
xeno-suter committed Oct 28, 2023
1 parent 9edd346 commit 54c3c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/settings/page.jsx
Expand Up @@ -42,14 +42,14 @@ export default function Settings() {
}, []);

const isActive = (tempChar) => {
return userData.characteristics.includes(tempChar);
return userData?.characteristics.includes(tempChar);
};

return (
<>
<h1 style={{ textAlign: "center" }}>Profile</h1>

{userData && characteristics.length > 0 ? (
{userData.username && characteristics.length > 0 ? (
<>
<div style={{ textAlign: "center" }}>
<Image
Expand Down

0 comments on commit 54c3c7b

Please sign in to comment.