Fixes admin logout

This commit is contained in:
Maxi Redigonda 2020-08-23 18:55:05 -03:00
parent a89a465ac9
commit bb89956e9a

View File

@ -69,7 +69,7 @@ export default {
return {
type: 'LOGOUT',
payload: Promise.resolve()
.then(() => gapi.auth2.getAuthInstance().signOut())
.then(() => gapi && gapi.auth2 && gapi.auth2.getAuthInstance().signOut())
.then(() => API.call({
path: '/user/logout',
data: {}