diff --git a/website/client/components/groups/chat.vue b/website/client/components/groups/chat.vue index a2df8abd3e..af7b065894 100644 --- a/website/client/components/groups/chat.vue +++ b/website/client/components/groups/chat.vue @@ -124,12 +124,22 @@ async sendMessage () { if (this.sending) return; this.sending = true; - let response = await this.$store.dispatch('chat:postChat', { - group: this.group, - message: this.newMessage, - }); - this.group.chat.unshift(response.message); - this.newMessage = ''; + let response; + + try { + response = await this.$store.dispatch('chat:postChat', { + group: this.group, + message: this.newMessage, + }); + } catch (e) { + // catch exception to allow function to continue + } + + if (response) { + this.group.chat.unshift(response.message); + this.newMessage = ''; + } + this.sending = false; // @TODO: I would like to not reload everytime we send. Why are we reloading?