Skip to content

Commit

Permalink
Fix user admin null error
Browse files Browse the repository at this point in the history
  • Loading branch information
Soleone committed Mar 26, 2021
1 parent 438f6f8 commit 44f1706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default new Vuex.Store({
return state.app.status || {}
},
isUserAdmin(state) {
return state.user.uid === ADMIN_PLAYER_ID
return state.user && state.user.uid === ADMIN_PLAYER_ID
}
},
modules: {}
Expand Down

0 comments on commit 44f1706

Please sign in to comment.