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) => {