Add refresh when on main view
This commit is contained in:
parent
f33878d74c
commit
bdfdc8b433
@ -36,7 +36,12 @@ const formatWalletBalance = (): string => {
|
|||||||
|
|
||||||
const disconnectUser = () => {
|
const disconnectUser = () => {
|
||||||
etherStore.setWalletAddress("");
|
etherStore.setWalletAddress("");
|
||||||
router.push("/");
|
const currentRoute = router.currentRoute.value.path;
|
||||||
|
if (currentRoute !== "/") {
|
||||||
|
router.push("/");
|
||||||
|
} else {
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user