From 057ad2be194149d553e83dd291458a3fbbc13e17 Mon Sep 17 00:00:00 2001 From: Nirmit Sabharwal <55524764+nirmit1509@users.noreply.github.com> Date: Wed, 8 May 2024 20:39:44 +0530 Subject: [PATCH] fix: SafelistRequestStatus bug fix issue #416 (#419) Co-authored-by: Brian Chen --- src/util/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.ts b/src/util/util.ts index 9e0b0e84..2e625489 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -74,7 +74,7 @@ export function getNftContractFromRaw( openSeaMetadata: { ...rawNftContract.openSeaMetadata, safelistRequestStatus: - rawNftContract.openSeaMetadata.safelistRequestStatus !== null + rawNftContract.openSeaMetadata?.safelistRequestStatus !== null ? stringToEnum( rawNftContract.openSeaMetadata.safelistRequestStatus, OpenSeaSafelistRequestStatus