From 4ee7903b05e0f6c447ca29e3531af76b5dbdcb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Fern=C3=A1ndez?= <44572727+abefernan@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:37:26 +0200 Subject: [PATCH] Improve secure url checking Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com> --- components/chainSelect/ChainSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chainSelect/ChainSelect.tsx b/components/chainSelect/ChainSelect.tsx index 7eaf0d9..b9aaca4 100644 --- a/components/chainSelect/ChainSelect.tsx +++ b/components/chainSelect/ChainSelect.tsx @@ -174,7 +174,7 @@ const ChainSelect = () => { const getNodeFromArray = async (nodeArray: { address: string; provider: string }[]) => { // only return https connections const secureNodes = nodeArray - .filter((node) => node.address.includes("https://")) + .filter((node) => node.address.startsWith("https://")) .map(({ address }) => address); if (secureNodes.length === 0) {