feat: break streak on tier change

This commit is contained in:
TrèsAbhi committed 2026-01-04 15:18:00 -06:00
1 parent 85cd70b2d5
commit 091305a20f
1 file changed
+2 -1
+2 -1
View File
@@ -190,11 +190,12 @@ export function Guesser() {
Guess.mutate((draft) => {
if (isSelected) {
if (draft.tiers.length === 1) return;
draft.tiers = draft.tiers.filter((t) => t !== tier);
} else {
draft.tiers = [...draft.tiers, tier];
}
draft.streak = 0;
});
}}
>