From bea9f54ed5a2f1f45dcb0ddc4ecbfb66189171cd Mon Sep 17 00:00:00 2001 From: "Sven (AAMOS AI)" Date: Fri, 14 Aug 2026 05:46:28 +0700 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20visa=20fel=20n=C3=A4r=20samtycke?= =?UTF-8?q?stoggeln=20fallerar=20(tyst=20miss=20f=C3=B6rut)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mobile/src/app/profile.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/mobile/src/app/profile.tsx b/apps/mobile/src/app/profile.tsx index 6ee63dd..f70d90f 100644 --- a/apps/mobile/src/app/profile.tsx +++ b/apps/mobile/src/app/profile.tsx @@ -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({