Add an await before a router push when login
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
b53d8d54ef
commit
0110124b32
@ -259,7 +259,7 @@ export default class Login extends Vue {
|
|||||||
await initializeCurrentActor(this.$apollo.provider.defaultClient);
|
await initializeCurrentActor(this.$apollo.provider.defaultClient);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof NoIdentitiesException) {
|
if (err instanceof NoIdentitiesException) {
|
||||||
this.$router.push({
|
await this.$router.push({
|
||||||
name: RouteName.REGISTER_PROFILE,
|
name: RouteName.REGISTER_PROFILE,
|
||||||
params: {
|
params: {
|
||||||
email: this.currentUser.email,
|
email: this.currentUser.email,
|
||||||
|
Loading…
Reference in New Issue
Block a user