Skip to content

Commit

Permalink
fix missing organizers when inserting conferences and seminars
Browse files Browse the repository at this point in the history
  • Loading branch information
c2d13p committed Dec 13, 2024
1 parent afe18d6 commit 52085ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/processes/Conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function ConferenceDetailsBlock({ onCompleted, data, setData, change, act
if (!data.startDate) return "Inserire la data di inizio del convegno"
if (!data.endDate) return "Inserire la data di fine del convegno"
if (new Date(data.startDate) > new Date(data.endDate)) return "Data di arrivo successiva alla data di partenza"
if (data.organizers.length === 0) return "Inserire almeno un organizzatore per il convegno"
if (!data.organizers || data.organizers.length === 0) return "Inserire almeno un organizzatore per il convegno"
return ""
})()

Expand Down
2 changes: 1 addition & 1 deletion src/processes/Seminar.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function SeminarDetailsBlock({ onCompleted, data, setData, change, active
if (!data.startDatetime) return "Inserire la data di inizio del seminario"
if (!data.duration || data.duration <= 0) return "Inserire la durata del seminario"
if (!data.conferenceRoom) return "Inserire l'aula in cui si svolge il seminario"
if (data.organizers.length === 0) return "Inserire almeno un organizzatore per il seminario"
if (!data.organizers || data.organizers.length === 0) return "Inserire almeno un organizzatore per il seminario"
return ""
})()

Expand Down

0 comments on commit 52085ed

Please sign in to comment.