diff --git a/templates/index.html b/templates/index.html
index 4d92b2d..365953f 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -204,9 +204,12 @@
settingsChartTime.onchange = (event) => {
chartTime = settingsChartTime.value
+ if (chartTime > 31) {
+ chartTime = 31
+ } else if (chartTime < 1) {
+ chartTime = 1
+ }
localStorage.setItem('settings-chart-time', chartTime)
-
- // TODO сделать динамическое обновление графика без перезагрузки страницы
window.location.reload()
};
});