From 5ec3c48e3827bc081a814a3f3812f7c33779172d Mon Sep 17 00:00:00 2001 From: HoangNDM6 Date: Tue, 2 Apr 2024 16:00:59 +0700 Subject: [PATCH] fix list token --- src/pages/Assets/Tokens/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Assets/Tokens/index.tsx b/src/pages/Assets/Tokens/index.tsx index c70b250551..992717812a 100644 --- a/src/pages/Assets/Tokens/index.tsx +++ b/src/pages/Assets/Tokens/index.tsx @@ -92,7 +92,8 @@ function Tokens(props): ReactElement { const safeTokens: any = useSelector(extendedSafeTokensSelector) const { name: safeName, address, isHideZeroBalance, coinConfig: coinConfigState } = useSelector(currentSafeWithNames) const [hideZeroBalance, setHideZeroBalance] = useState(isHideZeroBalance) - const coinConfig = loadFromLocalStorage(LS_TOKEN_CONFIG) as any[] + const coinConfigStorage = loadFromLocalStorage(LS_TOKEN_CONFIG) as any[] + const coinConfig = coinConfigStorage ?? coinConfigState const { onShow, onHide, safeActionsState } = useSafeActions() const safeAddress = extractSafeAddress()