From c9d778689beb21c7cda47668919150b03366100b Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 19 Jan 2024 13:18:28 +0400 Subject: [PATCH] [skip ci] fix skeletons for home page indicators widget --- ui/home/indicators/ChainIndicatorItem.tsx | 4 ++-- ui/home/indicators/ChainIndicators.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/home/indicators/ChainIndicatorItem.tsx b/ui/home/indicators/ChainIndicatorItem.tsx index 5a96c11fe2..51efc16b23 100644 --- a/ui/home/indicators/ChainIndicatorItem.tsx +++ b/ui/home/indicators/ChainIndicatorItem.tsx @@ -34,7 +34,7 @@ const ChainIndicatorItem = ({ id, title, value, icon, isSelected, onClick, stats return null; } - if (stats.isPending) { + if (stats.isPlaceholderData) { return ( no data; } diff --git a/ui/home/indicators/ChainIndicators.tsx b/ui/home/indicators/ChainIndicators.tsx index 200a8a61dc..974db1f99b 100644 --- a/ui/home/indicators/ChainIndicators.tsx +++ b/ui/home/indicators/ChainIndicators.tsx @@ -52,11 +52,11 @@ const ChainIndicators = () => { } const valueTitle = (() => { - if (statsQueryResult.isPending) { + if (statsQueryResult.isPlaceholderData) { return ; } - if (statsQueryResult.isError) { + if (!statsQueryResult.data) { return There is no data; }