From 82521088c34244d29de8bb8085035b91a16e0855 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Tue, 18 Nov 2025 00:59:29 +0000 Subject: [PATCH] fix: Correct image URL in ReportDetailModal - Fix photo URL construction to use correct backend URL (localhost:3005) - Remove incorrect VITE_API_BASE_URL reference - Images should now display properly in report details --- src/components/report/ReportDetailModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/report/ReportDetailModal.tsx b/src/components/report/ReportDetailModal.tsx index 556b1bf..541eb30 100644 --- a/src/components/report/ReportDetailModal.tsx +++ b/src/components/report/ReportDetailModal.tsx @@ -128,7 +128,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute src={ report.photoUrls[currentPhotoIndex].startsWith('http') ? report.photoUrls[currentPhotoIndex] - : `${(import.meta.env.VITE_API_BASE_URL || 'http://localhost:3005/api').replace('/api', '')}${report.photoUrls[currentPhotoIndex]}` + : `http://localhost:3005${report.photoUrls[currentPhotoIndex]}` } alt={`Report photo ${currentPhotoIndex + 1}`} className="w-full h-80 object-contain"