summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-25 09:58:53 -0500
committerDessalines <tyhou13@gmx.com>2020-01-25 09:58:53 -0500
commitaa5a911edc9d78cb0c462bbd525287e0f3a122ec (patch)
tree850ef9040582f0e140d103a5b4bfe87e8b116e71 /ui/src/components/post.tsx
parent691d05222bc1009ec7373336ee097b2bcda5ada5 (diff)
Fixing front end error messages. Fixes #462
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r--ui/src/components/post.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index 931ced2d..f57d8913 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -345,7 +345,7 @@ export class Post extends Component<any, PostState> {
parseMessage(msg: WebSocketJsonResponse) {
console.log(msg);
let res = wsJsonToRes(msg);
- if (res.error) {
+ if (msg.error) {
toast(i18n.t(msg.error), 'danger');
return;
} else if (res.op == UserOperation.GetPost) {