Browse Source

Merge pull request #465 from Empact/fix/api-error-throw

fix: Don't catch api/index errors
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
00fa22b253
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      app/api/index.js

12
app/api/index.js

@ -5,9 +5,7 @@ export function requestTicker(id) {
return axios({
method: 'get',
url: BASE_URL
})
.then(response => response.data)
.catch(error => error)
}).then(response => response.data)
}
export function requestTickers(ids) {
@ -23,9 +21,7 @@ export function requestBlockHeight() {
return axios({
method: 'get',
url: BASE_URL
})
.then(response => response.data)
.catch(error => error)
}).then(response => response.data)
}
export function requestSuggestedNodes() {
@ -33,7 +29,5 @@ export function requestSuggestedNodes() {
return axios({
method: 'get',
url: BASE_URL
})
.then(response => response.data)
.catch(error => error)
}).then(response => response.data)
}

Loading…
Cancel
Save