🩹 Fixes all minor issues raised by DeepScan

This commit is contained in:
Alicie
2021-12-26 23:14:25 +00:00
committed by Alicia Sykes
parent 5867601f1a
commit 6e3d26d077
8 changed files with 8 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ export default {
},
monthsToShow() {
const usersChoice = this.options.monthsToShow;
if (usersChoice && !Number.isNaN(usersChoice) && usersChoice > 0 && usersChoice <= 24) {
if (usersChoice && usersChoice > 0 && usersChoice <= 24) {
return usersChoice;
}
return 12;