formatting + todo

This commit is contained in:
Gamebrary 2020-09-28 16:36:16 -07:00
parent 4860c2d3fc
commit 03c8282224

View file

@ -26,7 +26,8 @@ export default {
return this.$router.replace({ name: 'dashboard' }); return this.$router.replace({ name: 'dashboard' });
} }
return firebase.auth().getRedirectResult().then(({ additionalUserInfo, user }) => { return firebase.auth().getRedirectResult()
.then(({ additionalUserInfo, user }) => {
if (additionalUserInfo && additionalUserInfo.isNewUser) { if (additionalUserInfo && additionalUserInfo.isNewUser) {
this.$store.dispatch('SEND_WELCOME_EMAIL', additionalUserInfo); this.$store.dispatch('SEND_WELCOME_EMAIL', additionalUserInfo);
} }
@ -36,7 +37,9 @@ export default {
} }
return this.handleAuthRedirect(); return this.handleAuthRedirect();
}); }).catch(() => {});
// TODO: handle issue when viewing site in incognito mode
}, },
methods: { methods: {