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({