Skip to content

Commit

Permalink
Return early instead of breaking.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Oct 5, 2023
1 parent 58c13b4 commit d53ed07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function App() {
if (!availableYears.includes(y)) {
setWarningMessage(strings.yearsWarning);
setShowWarning(true);
break;
return;
}
}
}
Expand Down

0 comments on commit d53ed07

Please sign in to comment.