Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Aug 28, 2024
1 parent 8ab4c1a commit 40fd161
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).reduce((acc, key) => {
if (!key.startsWith('G$') || key === gdEnvSymbol) {
acc.push({ value: key, label: key });
}
return acc;
}, []);
let options = Object.keys(tokenList).reduce<Array<{ value: string; label: string }>>((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 40fd161

Please sign in to comment.