Skip to content

Commit

Permalink
fix(NotificationsManagementNetwork): return chain_id instead of `ne…
Browse files Browse the repository at this point in the history
…twork object`

Forgot to get the value of an key instead of the whole object

See: e726e
  • Loading branch information
marcel-bitfly committed Oct 31, 2024
1 parent 5ba21d7 commit 1c700ca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { chainIdByDefault } = useRuntimeConfig().public
const networks = computed(() => notificationsManagementStore.settings.networks ?? [])
const currentNetworkId = computed(
() => notificationsManagementStore.settings.networks
.find(network => network.chain_id === Number(chainIdByDefault)) ?? 1,
.find(network => network.chain_id === Number(chainIdByDefault))?.chain_id ?? 1,
)
const currentNetwork = computed(
Expand Down Expand Up @@ -54,6 +54,9 @@ watchDebounced([

<template>
<div>
<pre>
{{ currentNetworkId }}
<pre>
<div v-if="!networks.length" class="error-container">
Upps something went wrong. Please try again.
</div>
Expand Down Expand Up @@ -124,6 +127,7 @@ watchDebounced([
</BcListSection>
</div>
</BcTabPanel>
</pre></pre>
</div>
</template>

Expand Down

0 comments on commit 1c700ca

Please sign in to comment.