From bc1d7a6a69da7ab9c587e724b8eba3fa2dc0115a Mon Sep 17 00:00:00 2001 From: n9lsjr Date: Mon, 19 Feb 2024 19:33:59 +0100 Subject: [PATCH] Fix return --- utils/wallet.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/wallet.js b/utils/wallet.js index 19dabe4..80f99f7 100644 --- a/utils/wallet.js +++ b/utils/wallet.js @@ -214,13 +214,12 @@ const fetchNodes = async () => { try { const response = await fetch(uri) const result = await response.json() - + return result.nodes + } catch (e) { console.log("Error fetching nodes") return false } - - return result.nodes } export const getBestNode = async (ssl=true) => {