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

faulty purgatory response workaround (#1016)

This commit is contained in:
Matthias Kretschmann 2022-01-24 10:51:51 +00:00 committed by GitHub
parent f55d8d9a91
commit 409f0c51fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,9 +97,8 @@ function AssetProvider({
setDDO(ddo) setDDO(ddo)
setTitle(ddo.metadata.name) setTitle(ddo.metadata.name)
setOwner(ddo.nft.owner) setOwner(ddo.nft.owner)
setIsInPurgatory(ddo.purgatory?.state) setIsInPurgatory((ddo.purgatory?.state as unknown as string) === 'true')
setPurgatoryData(ddo.purgatory) setPurgatoryData(ddo.purgatory)
// setPurgatory(ddo.purgatory)
} }
init() init()
return () => { return () => {