Skip to content

Commit

Permalink
Fix NFT
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Oct 26, 2023
1 parent 6969e5b commit 8f23414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/components/pages/nft/NFTCollectionPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ class NFTCollectionPage extends Component {

<div style={{ marginTop: '0.5rem' }}>
{items}
{next_from ? <div className='load-more' key='load_more'>
<center><button className='button hollow small' onClick={
e => this.props.fetchNftCollectionTokens(this.props.routeParams.name, next_from, this.sort, this.sortReversed)
}>{tt('g.load_more')}</button></center>
</div> : null}
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/utils/NFTUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function NFTImageStub() {
export function parseNFTImage(json_metadata, useStub = true) {
if (json_metadata) {
const meta = JSON.parse(json_metadata)
if (meta) return meta.image
if (meta && meta.image) return meta.image
}
if (!useStub) return null
return NFTImageStub()
Expand Down

0 comments on commit 8f23414

Please sign in to comment.