From 74e1436ae4625cd699db0f83d7a3f0dab58db63f Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 16 May 2017 01:09:33 +0700 Subject: [PATCH] Use correct error key --- .../src/components/EditableCommentContent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/components/EditableCommentContent.js b/client/coral-embed-stream/src/components/EditableCommentContent.js index 052da8e48..186317393 100644 --- a/client/coral-embed-stream/src/components/EditableCommentContent.js +++ b/client/coral-embed-stream/src/components/EditableCommentContent.js @@ -65,7 +65,7 @@ export class EditableCommentContent extends React.Component { componentWillUnmount() { if (this.editWindowExpiryTimeout) { this.editWindowExpiryTimeout = clearTimeout(this.editWindowExpiryTimeout); - } + } } async editComment(edit) { const {editComment, addNotification, stopEditing} = this.props; @@ -83,7 +83,7 @@ export class EditableCommentContent extends React.Component { successfullyEdited = true; } catch (error) { if (error.translation_key) { - addNotification('error', lang.t(error.translation_key) || error.translation_key); + addNotification('error', lang.t(`error.${error.translation_key}`)); } else if (error.networkError) { addNotification('error', lang.t('error.networkError')); } else {