Skip to content

Commit

Permalink
fix telos arcade NFT case, fix no nft source case
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-sg committed Nov 6, 2023
1 parent d948d3b commit 88debf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/antelope/stores/utils/nft-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function extractNftMetadata(
}
}
// if there's an image in the metadata, we return that
if (!image && metadata?.image) {
if (!image && metadata?.image && urlIsPicture(metadata.image)) {
image = metadata.image as string;
}

Expand Down
3 changes: 2 additions & 1 deletion src/pages/evm/nfts/NftViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function setHoverPreviewVisibility(visible: boolean) {
></video>
</div>

<template v-if="!isMediaLoading && iconOverlayName">
<template v-if="(!isMediaLoading && iconOverlayName) || (!nft.imgSrc && !nft.videoSrc)">
<div class="c-nft-viewer__overlay-icon-bg shadow-2"></div>

<q-icon
Expand Down Expand Up @@ -419,6 +419,7 @@ function setHoverPreviewVisibility(visible: boolean) {
position: relative;
height: 100%;
width: 100%;
display: flex;
}
&__image-container,
Expand Down

0 comments on commit 88debf3

Please sign in to comment.