Skip to content

Commit

Permalink
Update packages/app/src/components/DonateComponent.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Lewis B <[email protected]>
  • Loading branch information
sirpy and L03TJ3 authored Aug 28, 2024
1 parent 66125a8 commit 20e5fb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/app/src/components/DonateComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ function DonateComponent({ collective }: DonateComponentProps) {
const GDToken = GDEnvTokens[gdEnvSymbol];

const currencyOptions: { value: string; label: string }[] = useMemo(() => {
let options = Object.keys(tokenList)
.filter((key) => key.startsWith('G$') === false || key === gdEnvSymbol)
.map((key) => ({
value: key,
label: key,
}));
let options = Object.keys(tokenList).reduce((acc, key) => {
if (!key.startsWith('G$') || key === gdEnvSymbol) {
acc.push({ value: key, label: key });
}
return acc;
}, []);

return options;
}, [tokenList, gdEnvSymbol]);
Expand Down

0 comments on commit 20e5fb9

Please sign in to comment.