From 12ea21e27ce91abf42fbf0e52995d17a23ad9759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Riquelme=20Guzm=C3=A1n?= Date: Fri, 13 Sep 2024 09:08:05 -0300 Subject: [PATCH] chore: rename function --- src/context/useGetDomainMetadata.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }, []) }