Skip to content

Commit

Permalink
For real this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Senexis committed Dec 2, 2023
1 parent 14f76a4 commit 797b89b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PatreonButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function PatreonButtons(): React.JSX.Element {
return (
<>
<div className="my-6">
{data.tiers.filter(tier => tier.amount_cents > 0).filter(tier => tier.amount_cents > 0).map(tier => {
{data.tiers.filter(tier => tier.amount_cents > 0).map(tier => {
if (tier.limit === null || tier.limit.count !== tier.limit.max) {
return (
<a key={tier.title} href={tier.url} target="_blank" rel="noopener noreferrer" className="button button--secondary m-2 block lg:inline-block">{tier.title} for €{tier.amount_cents / 100}/mo</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Patrons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Patrons(): React.JSX.Element {
return (
<>
<div>
{data.tiers.map(tier => {
{data.tiers.filter(tier => tier.amount_cents > 0).map(tier => {
if (tier.limit === null || tier.limit.count !== tier.limit.max) {
return (
<a key={tier.title} href={tier.url} target="_blank" rel="noopener noreferrer" className="button button--secondary m-2 block lg:inline-block">{tier.title} for €{tier.amount_cents / 100}/mo</a>
Expand Down

0 comments on commit 797b89b

Please sign in to comment.