Skip to content

Commit

Permalink
Don't save selected seasons when they are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Toseflo committed Apr 8, 2024
1 parent f2fba0f commit e6f9cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ seasonSelect.on('change', function () {
allowedSeasonKeyList = $(this).val();
if (!fetchDone) return;

saveConfig();
if (allowedSeasonKeyList.length === 0) {
episodeSelect.parent().hide();
episodeSelect.select2('close');
Expand All @@ -180,6 +179,7 @@ seasonSelect.on('change', function () {
feedbackText.style.display = 'block';
return;
} else {
saveConfig();
episodeSelect.parent().show();
guessButton.style.display = 'block';
jokerButton.style.display = 'block';
Expand Down

0 comments on commit e6f9cff

Please sign in to comment.