fix(mobile): visa fel när samtyckestoggeln fallerar (tyst miss förut)
CI / Typecheck, test & build (push) Successful in 1m36s
CI / Typecheck, test & build (push) Successful in 1m36s
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user