Skip to content

Commit

Permalink
fix(sponsor): show privates
Browse files Browse the repository at this point in the history
  • Loading branch information
JayeshVP24 committed Sep 17, 2024
1 parent 23f0fe3 commit 88542c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/constants/exclusiveSponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ export const exclusiveSponsorData: Record<
title: string;
description: string;
bgImage: string;
private?: boolean;
showPrivates?: boolean;
}
> = {
'solana-gaming': {
title: 'Solana Gaming',
description:
"Welcome to a special earnings page managed by Solana Gaming — use these opportunities to contribute to Solana's gaming ecosystem, and earn in global standards!",
bgImage: '/assets/category_assets/bg/community.png',
private: true,
},
pyth: {
title: 'Pyth Network',
Expand All @@ -31,5 +30,6 @@ export const exclusiveSponsorData: Record<
description:
'Learn, burn and earn with techno-optimists over a 90-day programme on a private island near Singapore. More at: https://ns.com/.',
bgImage: '/assets/category_assets/bg/content.png',
showPrivates: true,
},
};
2 changes: 1 addition & 1 deletion src/pages/api/listings/sponsor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function handler(
isActive: true,
isArchived: false,
status: 'OPEN',
isPrivate: !!sponsorInfo!.private,
...(!!sponsorInfo?.showPrivates === true ? {} : { isPrivate: false }),
sponsor: {
name: sponsorInfo!.title,
},
Expand Down

0 comments on commit 88542c6

Please sign in to comment.