Skip to content

Commit

Permalink
Making sure translators are ready before rendering Chat component
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Mar 26, 2020
1 parent 11e1bb2 commit 1b0c07a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export class Chat extends PureComponent {
});

render() {
if (!this.state.t) return null;

return (
<ChatContext.Provider value={this.getContext()}>
<TranslationContext.Provider
Expand Down

0 comments on commit 1b0c07a

Please sign in to comment.