Skip to content

Commit

Permalink
feat(GameOptions): Big Bad Wolf not powerless if one werewolf dies op…
Browse files Browse the repository at this point in the history
…tion. Closes #171
  • Loading branch information
antoinezanardi committed Apr 28, 2021
1 parent 74b38e5 commit 6b53b4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Home/AccountModal/GoogleLoginButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6b53b4d

Please sign in to comment.