Skip to content

Commit

Permalink
(BIDS-3115) improvement after review
Browse files Browse the repository at this point in the history
  • Loading branch information
thib-wien committed Jun 12, 2024
1 parent f8b233d commit 298c7f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/components/bc/header/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ $smallHeaderThreshold: 1024px;
margin-top: auto;
line-height: 10px;
font-size: var(--tiny_text_font_size);
color: var(--grey);
color: var(--megamenu-text-color);
}
}
Expand Down
6 changes: 3 additions & 3 deletions frontend/stores/useNetworkStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export function useNetworkStore () {
async function loadAvailableNetworks () {
try {
const { fetch } = useCustomFetch()
const APIresponse = await fetch<ApiDataResponse<ApiChainInfo[]>>(API_PATH.AVAILABLE_NETWORKS)
if (!APIresponse.data || !APIresponse.data.length) {
const response = await fetch<ApiDataResponse<ApiChainInfo[]>>(API_PATH.AVAILABLE_NETWORKS)
if (!response.data || !response.data.length) {
return false
}
data.value.availableNetworks = networkTs.sortChainIDsByPriority(APIresponse.data.map(apiInfo => apiInfo.chain_id))
data.value.availableNetworks = networkTs.sortChainIDsByPriority(response.data.map(apiInfo => apiInfo.chain_id))
return true
} catch {
return false
Expand Down

0 comments on commit 298c7f1

Please sign in to comment.