Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/site/components/Common/Supporters/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Avatar from '@node-core/ui-components/Common/AvatarGroup/Avatar';

import { getAcronymFromString } from '#site/util/string';

import type { Supporter } from '#site/types';
import type { FC } from 'react';

Expand All @@ -12,6 +14,7 @@ const SupportersList: FC<SupportersListProps> = ({ supporters }) => (
{supporters.map(({ name, image, profile }, i) => (
<Avatar
nickname={name}
fallback={getAcronymFromString(name)}
image={image}
key={`${name}-${i}`}
url={profile}
Expand Down
5 changes: 4 additions & 1 deletion apps/site/next-data/generators/supportersData.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ async function fetchOpenCollectiveData() {
name,
image,
url: website,
profile,
// If profile starts with the guest- prefix, it's a non-existing account
profile: profile.startsWith('https://opencollective.com/guest-')
? undefined
: profile,
source: 'opencollective',
}));

Expand Down
2 changes: 1 addition & 1 deletion apps/site/types/supporters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type Supporter<T extends string> = {
name: string;
image: string;
url: string;
profile: string;
profile?: string;
source: T;
};

Expand Down
Loading