Skip to content

Commit

Permalink
Fix #1679 : Weather box should refresh data every 30 minutes (#1680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles authored Jan 2, 2023
1 parent 3df107c commit ecccc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/components/boxs/weather/WeatherBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class WeatherBoxComponent extends Component {
componentDidMount() {
this.refreshData();
// refresh weather every interval
this.interval = setInterval(() => this.refreshData, BOX_REFRESH_INTERVAL_MS);
this.interval = setInterval(() => this.refreshData(), BOX_REFRESH_INTERVAL_MS);
}

componentDidUpdate(previousProps) {
Expand Down

0 comments on commit ecccc20

Please sign in to comment.