Fix Decimal type conversion for latitude/longitude in report responses
This commit is contained in:
@@ -135,7 +135,7 @@
|
|||||||
|
|
||||||
## Report Verification System
|
## Report Verification System
|
||||||
|
|
||||||
- [-] 17. Implement report verification interface
|
- [x] 17. Implement report verification interface
|
||||||
- Add verify/dispute buttons to report details
|
- Add verify/dispute buttons to report details
|
||||||
- Create verification comment form
|
- Create verification comment form
|
||||||
- Display verification count and status
|
- Display verification count and status
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ export class ReportService {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
...report,
|
...report,
|
||||||
|
latitude: Number(report.latitude),
|
||||||
|
longitude: Number(report.longitude),
|
||||||
verificationCount,
|
verificationCount,
|
||||||
disputeCount,
|
disputeCount,
|
||||||
};
|
};
|
||||||
@@ -193,6 +195,8 @@ export class ReportService {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
...report,
|
...report,
|
||||||
|
latitude: Number(report.latitude),
|
||||||
|
longitude: Number(report.longitude),
|
||||||
verificationCount,
|
verificationCount,
|
||||||
disputeCount,
|
disputeCount,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export function ReportDetailModal({ report, isOpen, onClose, onVerify, onDispute
|
|||||||
<p className="text-sm text-gray-500 mb-2">Location</p>
|
<p className="text-sm text-gray-500 mb-2">Location</p>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<p className="font-mono text-sm text-gray-900">
|
<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>
|
||||||
<p className="text-xs text-gray-500">
|
<p className="text-xs text-gray-500">
|
||||||
Source: {report.locationSource === 'exif' ? 'Photo EXIF data' :
|
Source: {report.locationSource === 'exif' ? 'Photo EXIF data' :
|
||||||
|
|||||||
Reference in New Issue
Block a user