diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-25 09:58:53 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-25 09:58:53 -0500 |
commit | aa5a911edc9d78cb0c462bbd525287e0f3a122ec (patch) | |
tree | 850ef9040582f0e140d103a5b4bfe87e8b116e71 /ui/src/components/community-form.tsx | |
parent | 691d05222bc1009ec7373336ee097b2bcda5ada5 (diff) |
Fixing front end error messages. Fixes #462
Diffstat (limited to 'ui/src/components/community-form.tsx')
-rw-r--r-- | ui/src/components/community-form.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 33c63c89..c8d888be 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -261,7 +261,7 @@ export class CommunityForm extends Component< parseMessage(msg: WebSocketJsonResponse) { let res = wsJsonToRes(msg); console.log(msg); - if (res.error) { + if (msg.error) { toast(i18n.t(msg.error), 'danger'); this.state.loading = false; this.setState(this.state); |