diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue index 6c5aa38..cdba0c1 100644 --- a/src/components/TopBar.vue +++ b/src/components/TopBar.vue @@ -36,7 +36,12 @@ const formatWalletBalance = (): string => { const disconnectUser = () => { etherStore.setWalletAddress(""); - router.push("/"); + const currentRoute = router.currentRoute.value.path; + if (currentRoute !== "/") { + router.push("/"); + } else { + window.location.reload(); + } };