Skip to content

Commit

Permalink
fix: skip "failed to get url from Addresses.API" error during init (#972
Browse files Browse the repository at this point in the history
)

* fix: don't print out expected error

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias authored and olizilla committed Feb 26, 2019
1 parent 18cf506 commit aa7df07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bundles/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ bundle.reactConfigFetch = createSelector(
)

function getURLFromAddress (name, config) {
if (!config) return null

try {
const address = config.Addresses[name]
return toUri(address).replace('tcp://', 'http://')
Expand Down

0 comments on commit aa7df07

Please sign in to comment.