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 {