From 1c700cac99f9513bbb420ea83a41a6bea7330749 Mon Sep 17 00:00:00 2001 From: marcel-bitfly <174338434+marcel-bitfly@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:17:29 +0100 Subject: [PATCH] fix(NotificationsManagementNetwork): return `chain_id` instead of `network object` Forgot to get the value of an key instead of the whole object See: e726e --- .../management/NotificationsManagementNetwork.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/components/notifications/management/NotificationsManagementNetwork.vue b/frontend/components/notifications/management/NotificationsManagementNetwork.vue index 6ef36b427..f28612407 100644 --- a/frontend/components/notifications/management/NotificationsManagementNetwork.vue +++ b/frontend/components/notifications/management/NotificationsManagementNetwork.vue @@ -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( @@ -54,6 +54,9 @@ watchDebounced([