Skip to content

Commit

Permalink
(BIDS-3115) loadAvailableNetworks() returns type Promise<boolean> def…
Browse files Browse the repository at this point in the history
…ined (for useAsyncData)
  • Loading branch information
thib-wien committed Jun 12, 2024
1 parent 298c7f1 commit 0c0215a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/stores/useNetworkStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useNetworkStore () {
/**
* Needs to be called once, when the front-end is loading. Unnecessary afterwards.
*/
async function loadAvailableNetworks () {
async function loadAvailableNetworks () : Promise<boolean> {
try {
const { fetch } = useCustomFetch()
const response = await fetch<ApiDataResponse<ApiChainInfo[]>>(API_PATH.AVAILABLE_NETWORKS)
Expand Down

0 comments on commit 0c0215a

Please sign in to comment.