From 452aafa76f9733736aa78b85281e2db0beb0bf31 Mon Sep 17 00:00:00 2001 From: Arsenije Savic Date: Thu, 12 Oct 2023 17:55:30 -0600 Subject: [PATCH] fix(register): remove admin check before redirect --- src/components/login/register-user-with-captcha-view.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/login/register-user-with-captcha-view.vue b/src/components/login/register-user-with-captcha-view.vue index 6a0b1b030..a86321eec 100644 --- a/src/components/login/register-user-with-captcha-view.vue +++ b/src/components/login/register-user-with-captcha-view.vue @@ -233,7 +233,8 @@ export default { query.subscribe(({ data, loading }) => { const value = data.queryDao - if (value.length > 0 && value[0]?.admin?.length > 0) { + // TODO: return after eos fix && value[0]?.admin?.length > 0 + if (value.length > 0) { this.$router.push({ path: `/${daoUrl}/` }) } })