Skip to content

Commit

Permalink
fix(register): remove admin check before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Oct 12, 2023
1 parent b748d21 commit 452aafa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/login/register-user-with-captcha-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}/` })
}
})
Expand Down

0 comments on commit 452aafa

Please sign in to comment.