1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02:00

fixed no price set usecase

This commit is contained in:
Bogdan Fazakas 2021-04-23 12:07:59 +03:00
parent 0cef2cccd5
commit 1d02f53a06

View File

@ -187,6 +187,16 @@ export async function getPrice(asset: DDO): Promise<BestPrice> {
}
return price
} else {
return null
const price: BestPrice = {
type: '',
value: 0,
address: '',
exchange_id: '',
ocean: 0,
datatoken: 0,
pools: [],
isConsumable: 'false'
}
return price
}
}