diff --git a/src/useGeolocation.ts b/src/useGeolocation.ts index 3a4a36b031..5df7ac0b6f 100644 --- a/src/useGeolocation.ts +++ b/src/useGeolocation.ts @@ -13,7 +13,7 @@ export interface GeoLocationSensorState { error?: Error | PositionError; } -const useGeolocation = (options: PositionOptions): GeoLocationSensorState => { +const useGeolocation = (options?: PositionOptions): GeoLocationSensorState => { const [state, setState] = useState({ loading: true, accuracy: null,