Skip to content

Commit

Permalink
Fixed issue for users that already have the free tier saved in posts_…
Browse files Browse the repository at this point in the history
…products
  • Loading branch information
sagzy committed Mar 6, 2024
1 parent 40c30e7 commit 1853bf2
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 (jsonModel.visibility === 'paid' && jsonModel.tiers) {
if (['tiers', 'paid'].includes(jsonModel.visibility) && jsonModel.tiers) {
jsonModel.tiers = tiersData ? tiersData.filter(t => t.type === 'paid') : [];
}

Expand Down

0 comments on commit 1853bf2

Please sign in to comment.