mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
fix(client): avoid TypeError in store state
This commit is contained in:
parent
aa61c1fe06
commit
c125ac4d93
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue