diff --git a/src/pages/participant/ParticipantPage.tsx b/src/pages/participant/ParticipantPage.tsx index 62ec252..7db3715 100644 --- a/src/pages/participant/ParticipantPage.tsx +++ b/src/pages/participant/ParticipantPage.tsx @@ -104,7 +104,7 @@ function ParticipantPageContent({ const {soundEffect} = useSettings(); const offline = useIsOffline(); const errorModal = useErrorModal(); - const [notes, setNotes] = useState(''); + const [notes, setNotes] = useState(participant?.notes || ''); const showCheckedInWarning = useRef(!!state?.fromScan && !!participant?.checkedIn); useEffect(() => { @@ -180,12 +180,6 @@ function ParticipantPageContent({ return () => controller.abort(); }, [eventId, regformId, participantId, errorModal, autoCheckin, offline, performCheckin]); - useEffect(() => { - if (participant) { - setNotes(participant.notes); - } - }, [participant]); - if (!event) { return } />; } else if (!regform) {