It happened because we were simply already on the /login route. When setting up the routing, if we don't have the account_id, it pushes to the /login route automatically.
I think we probably could remove this else branch completely, but there could be cases that I am not considering. I am not fully confident in it, so I would rather just leave it there with the condition.
This closes #85.
It happened because we were simply already on the
/login
route. When setting up the routing, if we don't have theaccount_id
, it pushes to the/login
route automatically.I think we probably could remove this
else
branch completely, but there could be cases that I am not considering. I am not fully confident in it, so I would rather just leave it there with the condition.