diff --git a/src/webapp/pages/form-page/disease-outbreak-event/useDiseaseOutbreakEventForm.ts b/src/webapp/pages/form-page/disease-outbreak-event/useDiseaseOutbreakEventForm.ts index 4420d525..9191e018 100644 --- a/src/webapp/pages/form-page/disease-outbreak-event/useDiseaseOutbreakEventForm.ts +++ b/src/webapp/pages/form-page/disease-outbreak-event/useDiseaseOutbreakEventForm.ts @@ -135,10 +135,6 @@ export function useDiseaseOutbreakEventForm(diseaseOutbreakEventId?: Id): State .execute(diseaseOutbreakEventId, diseaseOutbreakEventData) .run( () => { - setGlobalMessage({ - text: i18n.t(`Disease Outbreak saved successfully`), - type: "success", - }); setIsLoading(false); }, err => { @@ -146,6 +142,11 @@ export function useDiseaseOutbreakEventForm(diseaseOutbreakEventId?: Id): State setIsLoading(false); } ); + + setGlobalMessage({ + text: i18n.t(`Disease Outbreak saved successfully`), + type: "success", + }); }, err => { setGlobalMessage({