diff --git a/src/context/useGetDomainMetadata.ts b/src/context/useGetDomainMetadata.ts index 611495f..108fa73 100644 --- a/src/context/useGetDomainMetadata.ts +++ b/src/context/useGetDomainMetadata.ts @@ -2,7 +2,7 @@ import { useEffect } from "react" import { Actions, EnvironmentMetadata, ResourceMetadata } from "../types" export function useGetDomainMetadata(explorerContextDispatcher: React.Dispatch): void { - const getSharedConfig = async (): Promise => { + const getDomainMetadata = async (): Promise => { const reponse = await fetch(`${import.meta.env.VITE_INDEXER_URL as string}/api/domains/metadata`) const domainsData = (await reponse.json()) as EnvironmentMetadata @@ -13,7 +13,7 @@ export function useGetDomainMetadata(explorerContextDispatcher: React.Dispatch { - void getSharedConfig() + void getDomainMetadata() }, []) }