From bcafc9339967a6b5168f26b5b344158a70b003c8 Mon Sep 17 00:00:00 2001 From: isstuev Date: Mon, 18 Mar 2024 12:23:57 +0400 Subject: [PATCH] fix token icon fallback --- ui/shared/entities/token/TokenEntity.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/shared/entities/token/TokenEntity.tsx b/ui/shared/entities/token/TokenEntity.tsx index dc1cfcaebe..d7cd9f7500 100644 --- a/ui/shared/entities/token/TokenEntity.tsx +++ b/ui/shared/entities/token/TokenEntity.tsx @@ -57,6 +57,7 @@ const Icon = (props: IconProps) => { src={ props.token.icon_url ?? undefined } alt={ `${ props.token.name || 'token' } logo` } fallback={ } + fallbackStrategy={ props.token.icon_url ? 'onError' : 'beforeLoadOrError' } /> ); };