Merge branch 'master' into suspect-wordlist

This commit is contained in:
Wyatt Johnson
2016-12-16 17:07:56 -07:00
committed by GitHub
@@ -51,8 +51,8 @@ class ConfigureStreamContainer extends Component {
}
getClosedIn () {
const {config} = this.props;
const {created_at, closedTimeout} = config;
const {closedTimeout} = this.props.config;
const {created_at} = this.props.asset;
return lang.timeago(new Date(created_at).getTime() + (1000 * closedTimeout));
}
@@ -80,7 +80,11 @@ class ConfigureStreamContainer extends Component {
}
const mapStateToProps = (state) => ({
config: state.config.toJS()
config: state.config.toJS(),
asset: state.items
.get('assets')
.first()
.toJS()
});
const mapDispatchToProps = dispatch => ({