From 6b53b4d8eaf8f548ace383c5f733cb6d549bfe73 Mon Sep 17 00:00:00 2001 From: antoinezanardi Date: Thu, 29 Apr 2021 00:12:48 +0200 Subject: [PATCH] feat(GameOptions): Big Bad Wolf not powerless if one werewolf dies option. Closes #171 --- src/components/Home/AccountModal/GoogleLoginButton.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Home/AccountModal/GoogleLoginButton.vue b/src/components/Home/AccountModal/GoogleLoginButton.vue index 3c8d088..608eb71 100644 --- a/src/components/Home/AccountModal/GoogleLoginButton.vue +++ b/src/components/Home/AccountModal/GoogleLoginButton.vue @@ -25,8 +25,8 @@ export default { ...mapActions("user", { loginWithGoogle: "loginWithGoogle" }), async login(data) { try { - if (data) { - await this.loginWithGoogle(data.tc.id_token); + if (data && data.getAuthResponse) { + await this.loginWithGoogle(data.getAuthResponse().id_token); this.$emit("hide-account-modal"); } } catch (err) {