From 409f0c51fbdc80bf09a614762cb66f56c3b2fb4a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 24 Jan 2022 10:51:51 +0000 Subject: [PATCH] faulty purgatory response workaround (#1016) --- src/@context/Asset.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/@context/Asset.tsx b/src/@context/Asset.tsx index 763369695..e1a414f4f 100644 --- a/src/@context/Asset.tsx +++ b/src/@context/Asset.tsx @@ -97,9 +97,8 @@ function AssetProvider({ setDDO(ddo) setTitle(ddo.metadata.name) setOwner(ddo.nft.owner) - setIsInPurgatory(ddo.purgatory?.state) + setIsInPurgatory((ddo.purgatory?.state as unknown as string) === 'true') setPurgatoryData(ddo.purgatory) - // setPurgatory(ddo.purgatory) } init() return () => {