Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 7aa77cc

Browse files
authored
Merge pull request #547 from roiLeo/fix/GalleryItem/price0
fix(galleryItem): don't show null price on image
2 parents d3089a2 + 2331702 commit 7aa77cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/rmrk/Gallery/GalleryItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ import { exist } from './Search/exist';
149149
150150
@Component<GalleryItem>({
151151
metaInfo() {
152-
const image = `https://og-image-green-seven.vercel.app/${encodeURIComponent(this.nft.name as string)}.png?price=${this.nft.price ? Vue.filter('formatBalance')(this.nft.price, 12, 'KSM') : ''}&image=${(this.meta.image as string)}`;
152+
const image = `https://og-image-green-seven.vercel.app/${encodeURIComponent(this.nft.name as string)}.png?price=${Number(this.nft.price) ? Vue.filter('formatBalance')(this.nft.price, 12, 'KSM') : ''}&image=${(this.meta.image as string)}`;
153153
return {
154154
title: this.nft.name,
155155
titleTemplate: '%s | Low Carbon NFTs',

0 commit comments

Comments
 (0)