File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ const DeviceLocation: VoidComponent<{ device: Device; deviceName: string }> = (p
109
109
} else if ( foundLocations . length === 1 ) {
110
110
args . map . setView ( [ foundLocations [ 0 ] . lat , foundLocations [ 0 ] . lng ] , 15 )
111
111
} else {
112
- throw new Error ( 'Location unavailable ' )
112
+ throw new Error ( 'Offline ' )
113
113
}
114
114
115
115
return foundLocations
@@ -159,7 +159,7 @@ const DeviceLocation: VoidComponent<{ device: Device; deviceName: string }> = (p
159
159
title = "Show your current location"
160
160
color = "secondary"
161
161
class = "bg-surface-container-low text-on-surface-variant"
162
- onClick = { ( ) => void requestLocation ( ) . catch ( ( ) => null ) }
162
+ onClick = { ( ) => void requestLocation ( ) }
163
163
trailing = { < span class = "pr-2 text-sm" > Show my location</ span > }
164
164
>
165
165
< Icon size = "20" > my_location</ Icon >
You can’t perform that action at this time.
0 commit comments