From b5e7583d5a420f8264b20718b870dd9f0aee67e5 Mon Sep 17 00:00:00 2001 From: Dawid Sowa Date: Tue, 26 Sep 2023 14:14:28 +0200 Subject: [PATCH] fix(sandbox): default network id --- examples/helpers/get-network-id.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/helpers/get-network-id.ts b/examples/helpers/get-network-id.ts index e6f4cda7..129821ed 100644 --- a/examples/helpers/get-network-id.ts +++ b/examples/helpers/get-network-id.ts @@ -6,8 +6,9 @@ import { ENV_NETWORK_NAME } from '../config' const networkId = RadixNetworkConfig?.[ENV_NETWORK_NAME]?.networkId -export const DEFAULT_NETWORK_ID = - String(networkId) || RadixNetwork.Stokenet.toString() +export const DEFAULT_NETWORK_ID = networkId + ? String(networkId) + : RadixNetwork.Stokenet.toString() export const getNetworkId = () => { const urlParams = new URLSearchParams(window.location.search)