From 6428049c155027d616b482a11698ef8e5d00325e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lobo?= Date: Tue, 6 Feb 2024 09:23:51 +0000 Subject: [PATCH] fix: please --- layout/Attendee/Profile/Profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/Attendee/Profile/Profile.tsx b/layout/Attendee/Profile/Profile.tsx index 404030f0..3228ee69 100644 --- a/layout/Attendee/Profile/Profile.tsx +++ b/layout/Attendee/Profile/Profile.tsx @@ -29,7 +29,7 @@ function Profile() { const [avatar, setAvatar] = useState(null); const [editing, setEditing] = useState(false); const [username, setUsername] = useState(user.nickname || ""); - const [course, setCourse] = useState(user.course.toString() || ""); + const [course, setCourse] = useState(user.course?.toString() || ""); const [courses, setCourses] = useState([{ id: "", name: "None" }]);