commit | 0c2728975352278c873dd4be8134065694d28057 | [log] [tgz] |
---|---|---|
author | TheCodedProf <samuel.shuert@gmail.com> | Wed Mar 01 11:53:51 2023 -0500 |
committer | TheCodedProf <samuel.shuert@gmail.com> | Wed Mar 01 11:53:51 2023 -0500 |
tree | d9ff555b6472e614ebc83a4fb325489dff5c8a62 | |
parent | c86e44ba8d165c70b41860ba024c16a7f66ef181 [diff] |
made minor fixed
diff --git a/pages/api/season.js b/pages/api/season.js index 2603a52..6bc1d3b 100644 --- a/pages/api/season.js +++ b/pages/api/season.js
@@ -38,7 +38,7 @@ } else { // Calculate how many days it has been since each season ended let days = Object.keys(dates).map((str) => daysSinceDate(dates[str][1])) - currentDaysIntoSeason = Math.min(...days); + currentDaysIntoSeason = Math.min(...days) - 1; } return {