Skip to content

Commit

Permalink
Merge pull request #1174 from common-group/fix/exibir-recompensa-esco…
Browse files Browse the repository at this point in the history
…gata-edição-da-assinatura

🐞 Exibe recompensa esgotada na edição de assinaturas com essa recompensa.
  • Loading branch information
thiagocatarse authored Jan 20, 2022
2 parents 10cfdcd + 39bd674 commit 3c0c6fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const rewardSelectCard = {

vnode.state = {
normalReward,
isEdit,
isSelected,
setInput,
submitContribution,
Expand All @@ -97,7 +98,7 @@ const rewardSelectCard = {
view: function({state, attrs}) {
const reward = state.normalReward(attrs.reward);

if (!h.rewardSouldOut(reward)) {
if ((state.isEdit() && h.rewardSouldOut(reward) && state.isSelected(reward)) || !h.rewardSouldOut(reward)) {
return(
m('span.radio.w-radio.w-clearfix.back-reward-radio-reward', {
class: state.isSelected(reward) ? 'selected' : '',
Expand Down

0 comments on commit 3c0c6fd

Please sign in to comment.