fix(mobile): plan/hushåll/profil felhantering + streckkod pausar kamera (MIKRO 54)
CI / Typecheck, test & build (push) Failing after 42s

This commit is contained in:
Sven (AAMOS AI)
2026-08-14 18:38:15 +07:00
parent 13689d5f8e
commit d95c67d979
4 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ export default function PlanScreen() {
) : ( ) : (
<> <>
<EmptyState text={t("plan.emptyDay")} /> <EmptyState text={t("plan.emptyDay")} />
{plan === null && ( {(plan === null || !hasEntries) && (
<Button <Button
label={t("plan.generate")} label={t("plan.generate")}
onPress={() => generate.mutate()} onPress={() => generate.mutate()}
+1
View File
@@ -111,6 +111,7 @@ export default function BarcodeScreen() {
<View style={styles.container}> <View style={styles.container}>
<CameraView <CameraView
style={StyleSheet.absoluteFill} style={StyleSheet.absoluteFill}
active={!busy}
barcodeScannerSettings={{ barcodeTypes: ["ean13", "ean8", "upc_a", "upc_e"] }} barcodeScannerSettings={{ barcodeTypes: ["ean13", "ean8", "upc_a", "upc_e"] }}
onBarcodeScanned={(scan) => void onScanned(scan.data)} onBarcodeScanned={(scan) => void onScanned(scan.data)}
/> />
+1
View File
@@ -42,6 +42,7 @@ export default function HouseholdScreen() {
}); });
if (me.isLoading || household.isLoading) return <LoadingView />; if (me.isLoading || household.isLoading) return <LoadingView />;
if (me.isError) return <ErrorView onRetry={() => void me.refetch()} />;
if (!householdId) { if (!householdId) {
return ( return (
<Screen> <Screen>
+2
View File
@@ -8,6 +8,7 @@ import {
Body, Body,
Button, Button,
Card, Card,
ErrorView,
Heading, Heading,
LoadingView, LoadingView,
Row, Row,
@@ -107,6 +108,7 @@ export default function ProfileScreen() {
}); });
if (me.isLoading) return <LoadingView />; if (me.isLoading) return <LoadingView />;
if (me.isError) return <ErrorView onRetry={() => void me.refetch()} />;
const consentMap = new Map((consents.data ?? []).map((c) => [c.kind, c.status])); const consentMap = new Map((consents.data ?? []).map((c) => [c.kind, c.status]));