diff --git a/components/TopHeader/index.tsx b/components/TopHeader/index.tsx index 596d511c..53cce7c1 100644 --- a/components/TopHeader/index.tsx +++ b/components/TopHeader/index.tsx @@ -42,7 +42,14 @@ const TopHeader = () => { } function newParty() { + // Push the root URL router.push('/') + + // Clean state + const resetState = clonedeep(initialAppState) + Object.keys(resetState).forEach((key) => { + appState[key] = resetState[key] + }) } function logout() {