fix(client): avoid TypeError in store state

This commit is contained in:
Sabe Jones
2019-05-08 12:18:42 -05:00
parent aa61c1fe06
commit c125ac4d93

View File

@@ -400,7 +400,7 @@ export default {
// List of prompts for user on changes. Sounds like we may need a refactor here, but it is clean for now
if (!this.user.flags.welcomed) {
this.$store.state.avatarEditorOptions.editingUser = false;
if (this.$store.state.avatarEditorOptions) this.$store.state.avatarEditorOptions.editingUser = false;
return this.$root.$emit('bv::show::modal', 'avatar-modal');
}