fix(mobile): visa fel när samtyckestoggeln fallerar (tyst miss förut)
CI / Typecheck, test & build (push) Successful in 1m36s

This commit is contained in:
Sven (AAMOS AI)
2026-08-14 05:46:28 +07:00
parent f5aeb28a24
commit bea9f54ed5
+2
View File
@@ -66,6 +66,8 @@ export default function ProfileScreen() {
mutationFn: ({ kind, granted }: { kind: string; granted: boolean }) =>
api("/v1/me/consents", { method: "PUT", body: { kind, granted } }),
onSuccess: () => void queryClient.invalidateQueries({ queryKey: ["consents"] }),
onError: (err) =>
Alert.alert(t("common.oops"), err instanceof Error ? err.message : t("common.error")),
});
const togglePrecision = useMutation({