diff --git a/.kiro/specs/beach-litter-mapping/tasks.md b/.kiro/specs/beach-litter-mapping/tasks.md index ac70c31..ac7c9e9 100644 --- a/.kiro/specs/beach-litter-mapping/tasks.md +++ b/.kiro/specs/beach-litter-mapping/tasks.md @@ -135,7 +135,7 @@ ## Report Verification System -- [-] 17. Implement report verification interface +- [x] 17. Implement report verification interface - Add verify/dispute buttons to report details - Create verification comment form - Display verification count and status diff --git a/server/src/services/reportService.ts b/server/src/services/reportService.ts index 13339f1..7f2f35f 100644 --- a/server/src/services/reportService.ts +++ b/server/src/services/reportService.ts @@ -149,6 +149,8 @@ export class ReportService { return { ...report, + latitude: Number(report.latitude), + longitude: Number(report.longitude), verificationCount, disputeCount, }; @@ -193,6 +195,8 @@ export class ReportService { return { ...report, + latitude: Number(report.latitude), + longitude: Number(report.longitude), verificationCount, disputeCount, }; diff --git a/src/components/report/ReportDetailModal.tsx b/src/components/report/ReportDetailModal.tsx index fd090ac..541dbf8 100644 --- a/src/components/report/ReportDetailModal.tsx +++ b/src/components/report/ReportDetailModal.tsx @@ -209,7 +209,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute

Location

- {report.latitude.toFixed(6)}, {report.longitude.toFixed(6)} + {Number(report.latitude).toFixed(6)}, {Number(report.longitude).toFixed(6)}

Source: {report.locationSource === 'exif' ? 'Photo EXIF data' :