Einsatz geschlossen event wird richtig an piloten gesendet

This commit is contained in:
PxlLoewe
2025-10-28 02:19:55 +01:00
parent da9b957fcf
commit 4d43e2a36d
4 changed files with 27 additions and 5 deletions

View File

@@ -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;