From 6b577915a074f4dec298a68a661b8204b755ae2f Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 15 Jan 2020 14:04:23 +1100 Subject: [PATCH] Fixed typos --- js/views/conversation_loading_view.js | 4 ++-- js/views/inbox_view.js | 2 +- ts/components/AddServerDialog.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/views/conversation_loading_view.js b/js/views/conversation_loading_view.js index 2c3243709..136de39cd 100644 --- a/js/views/conversation_loading_view.js +++ b/js/views/conversation_loading_view.js @@ -10,13 +10,13 @@ initialize() {}, render() { - this.toastView = new Whisper.ReactWrapperView({ + this.dialogView = new Whisper.ReactWrapperView({ className: 'app-loading-wrapper', Component: window.Signal.Components.ConversationLoadingScreen, props: this.props, }); - this.$el.append(this.toastView.el); + this.$el.append(this.dialogView.el); }, }); })(); diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index cf27a1aa0..a10c3f3aa 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -24,7 +24,7 @@ const id = `conversation-${conversation.cid}`; const container = $('#main-view .conversation-stack'); - // Has been opened since app sart, but not focussed + // Has been opened since app start, but not focussed const conversationExists = container.children(`#${id}`).length > 0; // Is focussed const conversationOpened = container.children().first().id === id; diff --git a/ts/components/AddServerDialog.tsx b/ts/components/AddServerDialog.tsx index fb2581a05..0f7bf1abd 100644 --- a/ts/components/AddServerDialog.tsx +++ b/ts/components/AddServerDialog.tsx @@ -141,7 +141,7 @@ export class AddServerDialog extends React.Component { const connectionResult = this.attemptConnection(serverURL, channelId); - // Give 10s maximum for promise to revole. Else, throw error. + // Give 10s maximum for promise to resolve. Else, throw error. const maxConnectionDuration = 10000; const connectionTimeout = setTimeout(() => { if (!this.state.success) {