From 54c699b7ca66ec4a7a39d5c5680a25956d1be5fe Mon Sep 17 00:00:00 2001 From: Robin Naundorf Date: Mon, 13 Feb 2017 16:29:54 +0100 Subject: Fix typo (#5380) * Replace 'recieve' with 'receive' --- webapp/components/textbox.jsx | 8 ++++---- webapp/stores/notification_store.jsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'webapp') diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx index a1c31d888..f1f6d2a0a 100644 --- a/webapp/components/textbox.jsx +++ b/webapp/components/textbox.jsx @@ -44,7 +44,7 @@ export default class Textbox extends React.Component { this.focus = this.focus.bind(this); this.recalculateSize = this.recalculateSize.bind(this); - this.onRecievedError = this.onRecievedError.bind(this); + this.onReceivedError = this.onReceivedError.bind(this); this.handleKeyPress = this.handleKeyPress.bind(this); this.handleKeyDown = this.handleKeyDown.bind(this); this.handleBlur = this.handleBlur.bind(this); @@ -67,7 +67,7 @@ export default class Textbox extends React.Component { } componentDidMount() { - ErrorStore.addChangeListener(this.onRecievedError); + ErrorStore.addChangeListener(this.onReceivedError); } componentWillMount() { @@ -75,10 +75,10 @@ export default class Textbox extends React.Component { } componentWillUnmount() { - ErrorStore.removeChangeListener(this.onRecievedError); + ErrorStore.removeChangeListener(this.onReceivedError); } - onRecievedError() { + onReceivedError() { const errorCount = ErrorStore.getConnectionErrorCount(); if (errorCount > 1) { diff --git a/webapp/stores/notification_store.jsx b/webapp/stores/notification_store.jsx index 93d544cd1..58e4433ec 100644 --- a/webapp/stores/notification_store.jsx +++ b/webapp/stores/notification_store.jsx @@ -29,7 +29,7 @@ class NotificationStoreClass extends EventEmitter { this.inFocus = focus; } - handleRecievedPost(post, msgProps) { + handleReceivedPost(post, msgProps) { // Send desktop notification if ((UserStore.getCurrentId() !== post.user_id || post.props.from_webhook === 'true')) { if (PostUtils.isSystemMessage(post)) { @@ -129,7 +129,7 @@ NotificationStore.dispatchToken = AppDispatcher.register((payload) => { switch (action.type) { case ActionTypes.RECEIVED_POST: - NotificationStore.handleRecievedPost(action.post, action.websocketMessageProps); + NotificationStore.handleReceivedPost(action.post, action.websocketMessageProps); NotificationStore.emitChange(); break; case ActionTypes.BROWSER_CHANGE_FOCUS: -- cgit v1.2.3-1-g7c22