From 1fce435f95a1c056c4e9d7e09a8a40749855a352 Mon Sep 17 00:00:00 2001 From: vorujack Date: Sat, 20 Apr 2024 10:55:40 +0330 Subject: [PATCH] fix type problem --- src/action/sync.ts | 1 - src/pages/wallet-page/asset/AssetItem.tsx | 7 +++---- src/pages/wallet-page/asset/AssetItemDetail.tsx | 14 ++++++-------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/action/sync.ts b/src/action/sync.ts index f52eb66..fd5b98a 100644 --- a/src/action/sync.ts +++ b/src/action/sync.ts @@ -101,7 +101,6 @@ const syncInfo = async (network: AbstractNetwork, address: Address) => { } }; - const syncAssets = async ( network: AbstractNetwork, networkType: string, diff --git a/src/pages/wallet-page/asset/AssetItem.tsx b/src/pages/wallet-page/asset/AssetItem.tsx index 37d9cab..1093a07 100644 --- a/src/pages/wallet-page/asset/AssetItem.tsx +++ b/src/pages/wallet-page/asset/AssetItem.tsx @@ -27,12 +27,11 @@ const AssetItem = (props: PropsType) => { {details.logo ? ( - + ) : ( - + )} - {details.name} @@ -53,8 +52,8 @@ const AssetItem = (props: PropsType) => { > { - {props.logoSrc && ( - - )} + {props.logo ? ( + + + + ) : undefined} {props.name}