Also, better way to do this would be
```js
state.isGeolocated = historyState.isGeolocated || state.isGeolocated;
```