From 82e4253e343eddaeb4fa63d572caf1a028f5764d Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 30 Oct 2018 20:38:21 +0100 Subject: [PATCH] fix whiper in embark-ui --- embark-ui/src/containers/CommunicationContainer.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/embark-ui/src/containers/CommunicationContainer.js b/embark-ui/src/containers/CommunicationContainer.js index 31a03f8b2..b17130b40 100644 --- a/embark-ui/src/containers/CommunicationContainer.js +++ b/embark-ui/src/containers/CommunicationContainer.js @@ -2,11 +2,15 @@ import PropTypes from "prop-types"; import React, {Component} from 'react'; import connect from "react-redux/es/connect/connect"; import { Alert } from 'reactstrap'; -import {messageSend, messageListen} from "../actions"; +import {messageSend, messageListen, versions} from "../actions"; import Communication from "../components/Communication"; import {getMessages, getMessageChannels, isOldWeb3, isWeb3Enabled} from "../reducers/selectors"; class CommunicationContainer extends Component { + componentDidMount() { + this.props.fetchVersions(); + } + sendMessage(topic, message) { this.props.messageSend({topic, message}); } @@ -65,7 +69,7 @@ export default connect( mapStateToProps, { messageSend: messageSend.request, - messageListen: messageListen.request + messageListen: messageListen.request, + fetchVersions: versions.request } )(CommunicationContainer); -