Handle env value for http enabled
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user