Add refresh when on main view

This commit is contained in:
enzoggqs 2022-12-16 17:57:29 -03:00
parent f33878d74c
commit bdfdc8b433

View File

@ -36,7 +36,12 @@ const formatWalletBalance = (): string => {
const disconnectUser = () => {
etherStore.setWalletAddress("");
const currentRoute = router.currentRoute.value.path;
if (currentRoute !== "/") {
router.push("/");
} else {
window.location.reload();
}
};
</script>