Fix Decimal type conversion for latitude/longitude in report responses
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -209,7 +209,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute
|
||||
<p className="text-sm text-gray-500 mb-2">Location</p>
|
||||
<div className="space-y-1">
|
||||
<p className="font-mono text-sm text-gray-900">
|
||||
{report.latitude.toFixed(6)}, {report.longitude.toFixed(6)}
|
||||
{Number(report.latitude).toFixed(6)}, {Number(report.longitude).toFixed(6)}
|
||||
</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
Source: {report.locationSource === 'exif' ? 'Photo EXIF data' :
|
||||
|
||||
Reference in New Issue
Block a user