Skip to content

Commit

Permalink
fix: default image when nft to send has no image
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Dec 18, 2024
1 parent eec3ed6 commit bf4f5cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<a class="nft-select-list__token" @click="$emit('selectNft', item)">
<div class="nft-select-list__token-info">
<img :src="item.image" />
<img :src="item.image" @error="imageLoadError" />

<div class="nft-select-list__token-info-name">
<h4>
Expand All @@ -26,6 +26,7 @@
<script setup lang="ts">
import { PropType } from 'vue';
import { NFTItemWithCollectionName } from '@/types/nft';
import { imageLoadError } from '@/ui/action/utils/misc';
defineEmits<{
(e: 'selectNft', data: NFTItemWithCollectionName): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="send-nft-select__wrap">
<a class="send-nft-select" @click="$emit('toggleSelect', item.id !== '')">
<div class="send-nft-select__image">
<img v-if="item.image !== ''" :src="item.image" alt="" />
<img :src="item.image" alt="" @error="imageLoadError" />
</div>
<div class="send-nft-select__info">
<h5>
Expand Down Expand Up @@ -43,6 +43,7 @@
import { PropType } from 'vue';
import SwitchArrow from '@action/icons/header/switch_arrow.vue';
import { NFTItemWithCollectionName } from '@/types/nft';
import { imageLoadError } from '@/ui/action/utils/misc';
defineEmits<{
(e: 'toggleSelect', val: boolean): void;
Expand Down

0 comments on commit bf4f5cb

Please sign in to comment.