mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
Merge pull request #181 from coralproject/fix-closed-at
Fixed closing at
This commit is contained in:
@@ -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 => ({
|
||||
|
||||
Reference in New Issue
Block a user