diff --git a/src/store/provider.jsx b/src/store/provider.jsx index be09583..bae29b5 100644 --- a/src/store/provider.jsx +++ b/src/store/provider.jsx @@ -68,13 +68,13 @@ export default class AppProvider extends PureComponent { // darkMode() { const now = new Date().getHours() - + const { location } = this.state // fallback times, in hours let sunrise = 7 let sunset = 19 // times based on detected country code - if (this.state.location && this.state.location !== 'XX') { + if (location && location !== 'XX' && location !== 'T1') { const country = this.state.location.toLowerCase() const times = SunCalc.getTimes( new Date(),