From 83996d7107b6e0d22b2a80a1c91a3ccf100c56d3 Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Fri, 3 May 2024 00:27:16 +0200 Subject: [PATCH] feat(#298): Made Userview listen on route change --- src/views/UserView/UserView.vue | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/UserView/UserView.vue b/src/views/UserView/UserView.vue index b6e0b0a3..929204f7 100644 --- a/src/views/UserView/UserView.vue +++ b/src/views/UserView/UserView.vue @@ -77,13 +77,23 @@
Alias
{{ state.user.alias }}

- {{ state.user.earlyAccess?.active ? "Early access" : "No early access" }} + {{ + state.user.earlyAccess?.active + ? "Early access" + : "No early access" + }} @@ -259,13 +269,14 @@ const init = () => { router.push({ name: "NotFound" }); } - router.push({ name: "UserView", params: { id: state.addr } }); getUser(); getCoins(); getMatches(); - console.log(state.user) + console.log(state.user); }; +watch(() => route.params.id, init); + onMounted(init); const getUser = () => {