Skip to content

Commit

Permalink
Fix for invalid handicap values
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Dec 19, 2024
1 parent f9f5bee commit cc13de2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/Play/QuickMatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,11 @@ export function QuickMatch(): JSX.Element {
description: v === 0 ? llm_pgettext("Player is the same rank as you", "Your rank") : "",
}));

// ensure a valid handicap value is selected
if (!handicap_options.find((o) => o.value === handicaps)) {
setHandicaps("standard");
}

return (
<>
<div id="QuickMatch">
Expand Down

0 comments on commit cc13de2

Please sign in to comment.