Skip to content

Commit

Permalink
fix(hub): update gauge dictionaries to include all gauges
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownBrownBear committed Sep 18, 2024
1 parent f60b5d2 commit aaacf88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/hub/src/components/gauge-header-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export const GaugeHeaderWidget = ({
address: Address;
className?: string;
}) => {
const { gaugeDictionary, isLoading } = usePollGauges();
const { gaugeDictionary, isLoading } = usePollGauges({
pageSize: 9999,
});
const gauge = gaugeDictionary?.[address];

const { data } = useTokens();
Expand Down
6 changes: 4 additions & 2 deletions packages/shared-ui/src/gauge-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export const GaugeIcon = ({
size,
...props
}: IconProps) => {
const { gaugeDictionary } = usePollGauges();
const { gaugeDictionary } = usePollGauges({
pageSize: 9999,
});
const img = useMemo(
() => gaugeDictionary?.[address]?.metadata?.logoURI ?? "",
[address],
Expand All @@ -55,7 +57,7 @@ export const GaugeIcon = ({
alt={address}
/>
<AvatarFallback>
<Icons.gauge className="w-full h-full p-[15%]" />
<Icons.gauge className="h-full w-full p-[15%]" />
</AvatarFallback>
</Avatar>
);
Expand Down

0 comments on commit aaacf88

Please sign in to comment.