Skip to content

Commit

Permalink
fix: correct property check in NFTokenElement
Browse files Browse the repository at this point in the history
  • Loading branch information
N3TC4T committed Oct 3, 2024
1 parent 0ee0b9d commit a4874da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Modules/NFTokenElement/NFTokenElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ class NFTokenElement extends PureComponent<Props, State> {
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({
Expand Down

0 comments on commit a4874da

Please sign in to comment.