1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
alexcos20 2020-09-22 04:37:25 -07:00
parent 7f6c192f9a
commit fd64b6cc00

View File

@ -306,7 +306,7 @@ export class Provider extends Instantiable {
try { try {
const response = await this.ocean.utils.fetch.get(url) const response = await this.ocean.utils.fetch.get(url)
if (response?.ok) { if (response?.ok) {
const params = response.json() const params = await response.json()
if (params && params['provider-address']) return true if (params && params['provider-address']) return true
} }
return false return false