Fix display of info about user's own claims on Publish page (WIP) #218

Merged
alexliebowitz merged 2 commits from fix-publish-my-claims-display into master 2017-06-09 16:49:24 +02:00
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@ import { connect } from "react-redux";
import { doNavigate, doHistoryBack } from "actions/app";
import { doClaimRewardType } from "actions/rewards";
import { selectMyClaims } from "selectors/claims";
import { doFetchClaimListMine } from "actions/content";
import rewards from "rewards";
import PublishPage from "./view";
@ -13,8 +14,8 @@ const select = state => ({
const perform = dispatch => ({
back: () => dispatch(doHistoryBack()),
navigate: path => dispatch(doNavigate(path)),
claimFirstChannelReward: () =>
dispatch(doClaimRewardType(rewards.TYPE_FIRST_CHANNEL)),
fetchClaimListMine: () => dispatch(doFetchClaimListMine()),
claimFirstChannelReward: () => dispatch(doClaimRewardType(rewards.TYPE_FIRST_CHANNEL)),
});
export default connect(select, perform)(PublishPage);

View file

@ -411,6 +411,7 @@ class PublishPage extends React.PureComponent {
}
componentWillMount() {
this.props.fetchClaimListMine();
this._updateChannelList();
}