Commit 11233484 authored by Jarod Owen's avatar Jarod Owen
Browse files

Potential fix to the disappearing logout button

parent 964e4389
Pipeline #11364 passed with stages
in 2 minutes and 56 seconds
......@@ -31,6 +31,9 @@ import constants from '../constants'
export default {
name: 'Home',
mounted: function () {
this.loggedIn()
},
data: function () {
return {
email: '',
......@@ -92,11 +95,11 @@ export default {
loggedIn () {
axios.get(constants.APIHOST + '/me')
.then(response => {
this.logIn = true
this.userOb = response.data.user
})
.catch(error => {
this.dummy = error
this.logIn = false
this.userOb = null
})
return true
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment