diff --git a/client/src/common/contexts/GroupContext.jsx b/client/src/common/contexts/GroupContext.jsx index 552a8a4..03d0454 100644 --- a/client/src/common/contexts/GroupContext.jsx +++ b/client/src/common/contexts/GroupContext.jsx @@ -47,6 +47,12 @@ export const GroupProvider = ({children}) => { setRound([]); } + const resetGame = () => { + setAllGroups([]); + setGroups([]); + setRound([]); + } + useEffect(() => { socket.on("JOINED", handleJoin); socket.on("LEFT", handleLeave); @@ -58,7 +64,7 @@ export const GroupProvider = ({children}) => { }, []); return ( - + {children} )