mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fixed no price set usecase
This commit is contained in:
parent
0cef2cccd5
commit
1d02f53a06
@ -187,6 +187,16 @@ export async function getPrice(asset: DDO): Promise<BestPrice> {
|
|||||||
}
|
}
|
||||||
return price
|
return price
|
||||||
} else {
|
} else {
|
||||||
return null
|
const price: BestPrice = {
|
||||||
|
type: '',
|
||||||
|
value: 0,
|
||||||
|
address: '',
|
||||||
|
exchange_id: '',
|
||||||
|
ocean: 0,
|
||||||
|
datatoken: 0,
|
||||||
|
pools: [],
|
||||||
|
isConsumable: 'false'
|
||||||
|
}
|
||||||
|
return price
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user