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);
|
||||
} catch (err) {
|
||||
if (err instanceof NoIdentitiesException) {
|
||||
this.$router.push({
|
||||
await this.$router.push({
|
||||
name: RouteName.REGISTER_PROFILE,
|
||||
params: {
|
||||
email: this.currentUser.email,
|
||||
|
|
Loading…
Reference in a new issue