mirror of
https://github.com/oceanprotocol/react.git
synced 2025-01-09 05:14:54 +01:00
getComputeItems fix did valid check
This commit is contained in:
parent
876c8459fa
commit
7ed9e8c182
@ -39,7 +39,7 @@ function useSearch(): UseSearch {
|
|||||||
page: number,
|
page: number,
|
||||||
offset: number
|
offset: number
|
||||||
): Promise<QueryResult> {
|
): Promise<QueryResult> {
|
||||||
if (!ocean || !account) return
|
if (!ocean || !accountId) return
|
||||||
|
|
||||||
setSearchError(undefined)
|
setSearchError(undefined)
|
||||||
|
|
||||||
@ -95,13 +95,14 @@ function useSearch(): UseSearch {
|
|||||||
const { did } = await ocean.keeper.agreementStoreManager.getAgreement(
|
const { did } = await ocean.keeper.agreementStoreManager.getAgreement(
|
||||||
job.agreementId
|
job.agreementId
|
||||||
)
|
)
|
||||||
|
|
||||||
const ddo = await ocean.assets.resolve(did)
|
|
||||||
if (
|
if (
|
||||||
did ===
|
did ===
|
||||||
'0x0000000000000000000000000000000000000000000000000000000000000000'
|
'0x0000000000000000000000000000000000000000000000000000000000000000'
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
const ddo = await ocean.assets.resolve(did)
|
||||||
|
|
||||||
if (ddo) {
|
if (ddo) {
|
||||||
// Since we are getting assets from chain there might be
|
// Since we are getting assets from chain there might be
|
||||||
// assets from other marketplaces. So return only those assets
|
// assets from other marketplaces. So return only those assets
|
||||||
|
Loading…
Reference in New Issue
Block a user