We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e9b72 commit 248ad0dCopy full SHA for 248ad0d
apps/site/next-data/generators/supportersData.mjs
@@ -19,8 +19,10 @@ async function fetchOpenCollectiveData() {
19
name,
20
image,
21
url: website,
22
- // If profile starts with 'guest-', it's a non-existing account
23
- profile: profile.includes('guest-') ? null : profile,
+ // If profile starts with the guest- prefix, it's a non-existing account
+ profile: profile.startsWith('https://opencollective.com/guest-')
24
+ ? undefined
25
+ : profile,
26
source: 'opencollective',
27
}));
28
apps/site/types/supporters.ts
@@ -2,7 +2,7 @@ export type Supporter<T extends string> = {
2
name: string;
3
image: string;
4
url: string;
5
- profile: string;
+ profile?: string;
6
source: T;
7
};
8
0 commit comments