Einsatz geschlossen event wird richtig an piloten gesendet
This commit is contained in:
@@ -22,7 +22,7 @@ export function QueryProvider({ children }: { children: ReactNode }) {
|
||||
defaultOptions: {
|
||||
mutations: {
|
||||
onError: (error) => {
|
||||
toast.error("An error occurred: " + (error as Error).message, {
|
||||
toast.error("Ein Fehler ist aufgetreten: " + (error as Error).message, {
|
||||
position: "top-right",
|
||||
});
|
||||
},
|
||||
@@ -88,6 +88,9 @@ export function QueryProvider({ children }: { children: ReactNode }) {
|
||||
},
|
||||
);
|
||||
break;
|
||||
case "mission-closed":
|
||||
toast("Dein aktueller Einsatz wurde geschlossen.");
|
||||
break;
|
||||
default:
|
||||
toast("unbekanntes Notification-Event");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user