Skip to content

Commit 5c092ef

Browse files
authored
Merge branch 'CS3219-AY2425S1:main' into main
2 parents a70498f + ad4be0d commit 5c092ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/domain/context/MatchmakingContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export const MatchmakingProvider: React.FC<{ children: ReactNode }> = ({ childre
147147
dispatch({ type: "SOCKET_CONNECTED" });
148148
matchService.startMatch(category, difficulty);
149149
dispatch({ type: "START_MATCHING" });
150+
timerDispatch({ type: "RESET_TIMER" });
150151
startTimer();
151152

152153
matchTimeoutRef.current = setTimeout(() => {
@@ -231,7 +232,6 @@ export const MatchmakingProvider: React.FC<{ children: ReactNode }> = ({ childre
231232
}
232233
});
233234

234-
235235
// When the match status is "found", start countdown (if triggered elsewhere)
236236
if (state.status === "found" && !intervalId) {
237237
startCountdown();

0 commit comments

Comments
 (0)