Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #452 from common-group/fix/show-current-user-backe…
Browse files Browse the repository at this point in the history
…r-card

🪲 fix backer user card cache
  • Loading branch information
grpse authored Aug 26, 2020
2 parents 886921f + e7f9bfb commit 7d97e7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions legacy/src/c/project-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ const projectHeader = {

if (h.isProjectPage() && currentUser && !_.isUndefined(project())) {
if (!projectVM.isSubscription(project)) {
projectVM.projectContributions([]);
contributionVM
.getUserProjectContributions(currentUser.user_id, project().project_id, ['paid', 'refunded', 'pending_refund'])
.then(vnode.attrs.projectContributions);
.then(projectVM.projectContributions);
}
}

vnode.state = {
hasSubscription,
userProjectSubscriptions,
projectContributions: vnode.attrs.projectContributions,
projectContributions: projectVM.projectContributions,
showContributions: h.toggleProp(false, true)
};
},
Expand Down

0 comments on commit 7d97e7f

Please sign in to comment.