Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
fix: please
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Feb 6, 2024
1 parent fd39f90 commit 6428049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/Attendee/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Course[]>([{ id: "", name: "None" }]);

Expand Down

0 comments on commit 6428049

Please sign in to comment.