diff --git a/src/components/CameraCapture.tsx b/src/components/CameraCapture.tsx
index 3b8bcb1..b44b22d 100644
--- a/src/components/CameraCapture.tsx
+++ b/src/components/CameraCapture.tsx
@@ -463,6 +463,24 @@ export default function CameraCapture({ onImageCaptured, onAnalysisComplete, onS
{t('bottle.abvLabel')}:
{analysisResult.abv ? `${analysisResult.abv}%` : '-'}
+ {analysisResult.distilled_at && (
+
+ {t('bottle.distilledLabel')}:
+ {analysisResult.distilled_at}
+
+ )}
+ {analysisResult.bottled_at && (
+
+ {t('bottle.bottledLabel')}:
+ {analysisResult.bottled_at}
+
+ )}
+ {analysisResult.batch_info && (
+
+ {t('bottle.batchLabel')}:
+ {analysisResult.batch_info}
+
+ )}
)}
diff --git a/src/services/update-bottle-status.ts b/src/services/update-bottle-status.ts
index 6f0a3b9..1041852 100644
--- a/src/services/update-bottle-status.ts
+++ b/src/services/update-bottle-status.ts
@@ -9,7 +9,9 @@ export async function updateBottleStatus(bottleId: string, status: 'sealed' | 'o
try {
const { data: { session } } = await supabase.auth.getSession();
- if (!session) throw new Error('Nicht autorisiert');
+ if (!session) {
+ throw new Error('Nicht autorisiert');
+ }
const { error } = await supabase
.from('bottles')
@@ -21,7 +23,9 @@ export async function updateBottleStatus(bottleId: string, status: 'sealed' | 'o
.eq('id', bottleId)
.eq('user_id', session.user.id);
- if (error) throw error;
+ if (error) {
+ throw error;
+ }
revalidatePath(`/bottles/${bottleId}`);
revalidatePath('/');
@@ -29,6 +33,7 @@ export async function updateBottleStatus(bottleId: string, status: 'sealed' | 'o
return { success: true };
} catch (error) {
console.error('Update Status Error:', error);
+
return {
success: false,
error: error instanceof Error ? error.message : 'Fehler beim Aktualisieren des Status',