Add refresh when on main view
This commit is contained in:
parent
f33878d74c
commit
bdfdc8b433
@ -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();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user