We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a70498f + ad4be0d commit 5c092efCopy full SHA for 5c092ef
frontend/src/domain/context/MatchmakingContext.tsx
@@ -147,6 +147,7 @@ export const MatchmakingProvider: React.FC<{ children: ReactNode }> = ({ childre
147
dispatch({ type: "SOCKET_CONNECTED" });
148
matchService.startMatch(category, difficulty);
149
dispatch({ type: "START_MATCHING" });
150
+ timerDispatch({ type: "RESET_TIMER" });
151
startTimer();
152
153
matchTimeoutRef.current = setTimeout(() => {
@@ -231,7 +232,6 @@ export const MatchmakingProvider: React.FC<{ children: ReactNode }> = ({ childre
231
232
}
233
});
234
-
235
// When the match status is "found", start countdown (if triggered elsewhere)
236
if (state.status === "found" && !intervalId) {
237
startCountdown();
0 commit comments