Skip to content

Commit

Permalink
Fix network listing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 19, 2024
1 parent 33fad91 commit 1a23691
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export const Proposals = ({
const { network } = useNetwork();
const organization = useMemo(
() =>
organizationKey(network == "hnt" ? "Helium" : network.toUpperCase())[0],
organizationKey(
network == "hnt" ? "Helium" : `Helium ${network.toUpperCase()}`
)[0],
[network]
);
const [filter, setFilter] = useState<ProposalFilter>("all");
Expand Down
2 changes: 2 additions & 0 deletions hooks/useMetaplexMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export function useMetaplexMetadata(mint: PublicKey | undefined): {
json: any | undefined;
symbol: string | undefined;
name: string | undefined;
image: string | undefined;
} {
const metadataAddr = useMemo(() => {
if (mint) {
Expand Down Expand Up @@ -128,6 +129,7 @@ export function useMetaplexMetadata(mint: PublicKey | undefined): {
return {
loading: jsonLoading || loading,
json,
image: json?.image,
metadata: metadataAcc,
symbol: json?.symbol || metadataAcc?.data?.symbol,
name: json?.name || metadataAcc?.data?.name,
Expand Down

0 comments on commit 1a23691

Please sign in to comment.