From 44f17063461b4cd224f3536652387264814c1806 Mon Sep 17 00:00:00 2001 From: Dennis Theisen Date: Fri, 26 Mar 2021 02:48:12 -0400 Subject: [PATCH] Fix user admin null error --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 557016f..aea0734 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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: {}