From 6631d6ad44ce77ab5f75e950848ecea64f34d9c4 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Fri, 9 Oct 2020 11:11:22 -0700 Subject: [PATCH] null check for new users --- src/store/mutations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/mutations.js b/src/store/mutations.js index 2267e157..e862d121 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -247,6 +247,10 @@ export default { }, UPDATE_SETTING(state, { key, value }) { + if (!state.settings) { + state.settings = {}; + } + state.settings[key] = value; },