Merge pull request #218 from lbryio/fix-publish-my-claims-display

Fix display of info about user's own claims on Publish page (WIP)
This commit is contained in:
Jeremy Kauffman 2017-06-09 10:49:23 -04:00 committed by GitHub
commit d4e95c59ed
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();
}