From bacebaefcb231ca515789120f9181bac4b7480e0 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Mon, 26 May 2025 18:29:28 +0530 Subject: [PATCH] Handle env value for http enabled --- context/ChainsContext/service.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/ChainsContext/service.tsx b/context/ChainsContext/service.tsx index b6a2328..b327c07 100644 --- a/context/ChainsContext/service.tsx +++ b/context/ChainsContext/service.tsx @@ -73,7 +73,7 @@ export const useChainsFromRegistry = () => { export const getNodeFromArray = async (nodeArray: readonly string[]) => { let secureNodes: readonly string[] = []; - if (process.env.NEXT_PUBLIC_IS_HTTP_ENABLED === "true") { + if (process.env.NEXT_PUBLIC_IS_HTTP_ENABLED?.toLowerCase() === "true") { // Allow all nodes, HTTP or HTTPS secureNodes = nodeArray; } else {