mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(client): avoid TypeError in store state
This commit is contained in:
@@ -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
|
// 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) {
|
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');
|
return this.$root.$emit('bv::show::modal', 'avatar-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user