From a4874da49ccfe00ef95a5682b7ef06e4d76b0185 Mon Sep 17 00:00:00 2001 From: N3TC4T Date: Thu, 3 Oct 2024 11:51:38 +0200 Subject: [PATCH] fix: correct property check in NFTokenElement --- src/components/Modules/NFTokenElement/NFTokenElement.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Modules/NFTokenElement/NFTokenElement.tsx b/src/components/Modules/NFTokenElement/NFTokenElement.tsx index 2edd28865..3a5cbd3d8 100644 --- a/src/components/Modules/NFTokenElement/NFTokenElement.tsx +++ b/src/components/Modules/NFTokenElement/NFTokenElement.tsx @@ -65,7 +65,8 @@ class NFTokenElement extends PureComponent { BackendService.getNFTDetails(account, [nfTokenId]) .then((resp: any) => { const { tokenData } = resp; - if (typeof tokenData === 'object' && 'nfTokenId' in tokenData) { + + if (typeof tokenData === 'object' && nfTokenId in tokenData) { const { image, name } = tokenData[nfTokenId]; this.setState({