You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the current guess is appended to the usedKeys, I think there needs to be another case in the getKeyColors function to handle the empty variant. Without this case, I see a missing case error in the pattern match due to the tile conditional not matching the empty variant.
Hi Alan,
Since the current guess is appended to the
usedKeys
, I think there needs to be another case in thegetKeyColors
function to handle theempty
variant. Without this case, I see a missing case error in the pattern match due to the tile conditional not matching theempty
variant.https://github.com/alanrsoares/weirdle/blob/main/src/components/Keyboard.tsx#L59
Here's one way to solve the issue:
Thanks,
Mike
The text was updated successfully, but these errors were encountered: