From c125ac4d9328bd54be77ca3d488a8cbcbbb38bb3 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 8 May 2019 12:18:42 -0500 Subject: [PATCH] fix(client): avoid TypeError in store state --- website/client/components/notifications.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/client/components/notifications.vue b/website/client/components/notifications.vue index 6a96bc3a42..75f2cf0adb 100644 --- a/website/client/components/notifications.vue +++ b/website/client/components/notifications.vue @@ -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'); }