fix(mobile): onError på 15 mutationer – inga tysta miss (MIKRO 52)
CI / Typecheck, test & build (push) Successful in 1m37s

This commit is contained in:
Sven (AAMOS AI)
2026-08-14 18:03:36 +07:00
parent ea1f9a113a
commit 491daace86
6 changed files with 32 additions and 2 deletions
@@ -1,5 +1,5 @@
import { useMemo, useState } from "react";
import { View } from "react-native";
import { Alert, View } from "react-native";
import { router, useLocalSearchParams } from "expo-router";
import { useMutation, useQuery } from "@tanstack/react-query";
import { api } from "@/lib/api";
@@ -52,6 +52,8 @@ export default function ScanDiffReviewScreen() {
onSuccess: () => {
router.back();
},
onError: (err) =>
Alert.alert(t("common.oops"), err instanceof Error ? err.message : t("common.error")),
});
const rows = useMemo(() => query.data?.rows ?? [], [query.data]);