Skip to content

Commit

Permalink
Fixed tiers paywall selecting all paid tiers (TryGhost#19817)
Browse files Browse the repository at this point in the history
refs INC-36

- oversight in parent commit 00cff0a
  • Loading branch information
sagzy authored and aileen committed Mar 13, 2024
1 parent 5ae0ce9 commit 64cd424
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = async (model, frame, options = {}) => {
jsonModel.tiers = tiersData || [];
}

if (['tiers', 'paid'].includes(jsonModel.visibility) && jsonModel.tiers) {
if (jsonModel.visibility === 'paid' && jsonModel.tiers) {
jsonModel.tiers = tiersData ? tiersData.filter(t => t.type === 'paid') : [];
}

Expand Down

0 comments on commit 64cd424

Please sign in to comment.