chore: build and UI fixes
This commit is contained in:
@ -152,7 +152,7 @@ async function startService() {
|
||||
// Throttling updates to save battery/bandwidth
|
||||
if (now - lastUpdate.value >= minUpdateInterval) {
|
||||
try {
|
||||
await telemetryService.sendTelemetry({
|
||||
await telemetryService.sendLocation({
|
||||
latitude: position.coords.latitude,
|
||||
longitude: position.coords.longitude,
|
||||
speed: position.coords.speed || undefined,
|
||||
@ -192,7 +192,7 @@ function stopService() {
|
||||
localStorage.setItem('driver_in_service', 'false')
|
||||
|
||||
// Optionally notify backend that we are offline
|
||||
telemetryService.sendTelemetry({
|
||||
telemetryService.sendLocation({
|
||||
latitude: 0,
|
||||
longitude: 0,
|
||||
status: 'offline'
|
||||
|
||||
Reference in New Issue
Block a user