mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 12:13:08 +00:00
null check for new users
This commit is contained in:
parent
97cbb4a929
commit
6631d6ad44
1 changed files with 4 additions and 0 deletions
|
@ -247,6 +247,10 @@ export default {
|
|||
},
|
||||
|
||||
UPDATE_SETTING(state, { key, value }) {
|
||||
if (!state.settings) {
|
||||
state.settings = {};
|
||||
}
|
||||
|
||||
state.settings[key] = value;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue