Skip to content

Commit

Permalink
Fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Feb 19, 2024
1 parent 69e775c commit bc1d7a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bc1d7a6

Please sign in to comment.