chore: fix push notif

This commit is contained in:
2026-03-02 18:29:29 +01:00
parent 06ddf705a0
commit 0085a39537
5 changed files with 45 additions and 4 deletions
+2 -1
View File
@@ -17,8 +17,8 @@ import { useNotifications } from "../context/NotificationContext";
import { useAuth } from "../auth/AuthContext";
import { useTheme } from "../context/ThemeContext";
import { logoutUser } from "../api/api";
import { removePushTokenFromBackend } from "../services/pushNotifications";
import type { ClientNotification } from "../api/api";
import { removePushTokenFromBackend } from "../services/pushNotifications";
import { fontSize, spacing, borderRadius } from "../theme";
import Toast from "../components/ui/Toast";
import type { ClientTabParamList, ClientStackParamList } from "./types";
@@ -76,6 +76,7 @@ function ClientTabs() {
}, [navigateToOrder, navigation, clearNavigateToOrder]);
const handleLogout = async () => {
try { await removePushTokenFromBackend(); } catch { /* silencieux */ }
await logoutUser();
await logout();
};