From ecccc20684a57dbe05f4783872efe1064bda0fcd Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Mon, 2 Jan 2023 12:40:51 +0100 Subject: [PATCH] Fix #1679 : Weather box should refresh data every 30 minutes (#1680) --- front/src/components/boxs/weather/WeatherBox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/boxs/weather/WeatherBox.jsx b/front/src/components/boxs/weather/WeatherBox.jsx index c8baa024e7..7cac22aaad 100644 --- a/front/src/components/boxs/weather/WeatherBox.jsx +++ b/front/src/components/boxs/weather/WeatherBox.jsx @@ -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) {