Skip to content

Commit

Permalink
chore: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola committed Sep 13, 2024
1 parent 1c23d17 commit 12ea21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/useGetDomainMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from "react"
import { Actions, EnvironmentMetadata, ResourceMetadata } from "../types"

export function useGetDomainMetadata(explorerContextDispatcher: React.Dispatch<Actions>): void {
const getSharedConfig = async (): Promise<void> => {
const getDomainMetadata = async (): Promise<void> => {
const reponse = await fetch(`${import.meta.env.VITE_INDEXER_URL as string}/api/domains/metadata`)
const domainsData = (await reponse.json()) as EnvironmentMetadata

Expand All @@ -13,7 +13,7 @@ export function useGetDomainMetadata(explorerContextDispatcher: React.Dispatch<A
}

useEffect(() => {
void getSharedConfig()
void getDomainMetadata()
}, [])
}

Expand Down

0 comments on commit 12ea21e

Please sign in to comment.