Skip to content

Commit

Permalink
feat: show snackbar on success
Browse files Browse the repository at this point in the history
  • Loading branch information
deeonwuli committed Aug 19, 2024
1 parent 0804588 commit f0d84ac
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,18 @@ export function useDiseaseOutbreakEventForm(diseaseOutbreakEventId?: Id): State
.execute(diseaseOutbreakEventId, diseaseOutbreakEventData)
.run(
() => {
setGlobalMessage({
text: i18n.t(`Disease Outbreak saved successfully`),
type: "success",
});
setIsLoading(false);
},
err => {
console.error({ err });
setIsLoading(false);
}
);

setGlobalMessage({
text: i18n.t(`Disease Outbreak saved successfully`),
type: "success",
});
},
err => {
setGlobalMessage({
Expand Down

0 comments on commit f0d84ac

Please sign in to comment.