diff --git a/frontend/app/lib/hooks/useRequestMatch.ts b/frontend/app/lib/hooks/useRequestMatch.ts index e425e8c3..0437416a 100644 --- a/frontend/app/lib/hooks/useRequestMatch.ts +++ b/frontend/app/lib/hooks/useRequestMatch.ts @@ -9,6 +9,7 @@ export const useRequestMatch = (userId: number) => { const handleDenyMatchRequest = useCallback(() => { setIsRequestingMatch(false); + socket.off("denied-match-request", handleDenyMatchRequest); }, [userId]); const requestMatch = useCallback(async () => { setSendRequestPending(true);