-
You have been successfully logged out.
- Something went wrong. Please try again
+
+ You have been successfully logged out.
+ Something went wrong. Please try again
@@ -11,7 +12,7 @@ import { gql } from 'nuxt-graphql-request'
export default {
data() {
return {
- hasLoggedOut: false
+ hasLoggedOut: null
}
},
methods: {
@@ -24,12 +25,7 @@ export default {
}
`
const { logout } = await this.$graphql.default.request(query)
- // SUCCESS
- if (logout.status == 'SUCCESS') {
- this.hasLoggedOut = true
- }
-
- console.log(logout.status)
+ this.hasLoggedOut = logout.status == 'SUCCESS' ? true : false
}
},
mounted() {