diff --git a/apps/cms/app/(dash)/orders/[orderId]/GoogleMap.tsx b/apps/cms/app/(dash)/orders/[orderId]/GoogleMap.tsx index 76740ee1..8a81bc9b 100644 --- a/apps/cms/app/(dash)/orders/[orderId]/GoogleMap.tsx +++ b/apps/cms/app/(dash)/orders/[orderId]/GoogleMap.tsx @@ -63,7 +63,7 @@ function GoogleMapComponent({ orderId }: { orderId: string }) { const directionsCallback = React.useCallback( ( result: google.maps.DirectionsResult | null, - status: google.maps.DirectionsStatus + status: google.maps.DirectionsStatus, ) => { if (result !== null) { if (status === 'OK') { @@ -73,7 +73,7 @@ function GoogleMapComponent({ orderId }: { orderId: string }) { } } }, - [] + [], ); const trackCurrentOrderLocation = React.useCallback(() => { @@ -100,11 +100,11 @@ function GoogleMapComponent({ orderId }: { orderId: string }) { const bounds = new window.google.maps.LatLngBounds(); const origin = new window.google.maps.LatLng( orderHubsPathApiRes.data.items[0].location.latitude, - orderHubsPathApiRes.data.items[0].location.longitude + orderHubsPathApiRes.data.items[0].location.longitude, ); const destination = new window.google.maps.LatLng( orderHubsPathApiRes.data.items[1].location.latitude, - orderHubsPathApiRes.data.items[1].location.longitude + orderHubsPathApiRes.data.items[1].location.longitude, ); setDirectionsServiceOptions({ @@ -126,7 +126,7 @@ function GoogleMapComponent({ orderId }: { orderId: string }) { setOrderLocation((oldLocation) => { const newLocation = new window.google.maps.LatLng( message.latitude, - message.longitude + message.longitude, ); if (oldLocation !== null) {