Skip to content

Commit

Permalink
Improve messages to user
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Oct 9, 2024
1 parent ddd8e23 commit b82d19f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/webapp/pages/form-page/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ export function useForm(formType: FormType, id?: Id): State {
error => {
setFormState({
kind: "error",
message: i18n.t(`Create Event form cannot be loaded`),
message: i18n.t(`Form cannot be loaded`),
});
setGlobalMessage({
text: i18n.t(
`An error occurred while loading Create Event form: ${error.message}`
),
text: i18n.t(`An error occurred while loading form: ${error.message}`),
type: "error",
});
setCurrentEventTrackerState(currentEventTracker);
Expand Down

0 comments on commit b82d19f

Please sign in to comment.