From c4bf6d56f1bf90459b9a76d0de91e5d20cf7121d Mon Sep 17 00:00:00 2001 From: domchan <31119455+domechn@users.noreply.github.com> Date: Sat, 18 May 2024 14:36:45 +0300 Subject: [PATCH] fix pie display when all value is 0 (#397) --- src/components/wallet-assets-percentage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/wallet-assets-percentage.tsx b/src/components/wallet-assets-percentage.tsx index de948e8..e6d1d80 100644 --- a/src/components/wallet-assets-percentage.tsx +++ b/src/components/wallet-assets-percentage.tsx @@ -40,7 +40,7 @@ const App = ({ useState([]); const chartHasData = useMemo( - () => !_(walletAssetsPercentage).isEmpty(), + () => !_(walletAssetsPercentage).filter(p => p.value > 0).isEmpty(), [walletAssetsPercentage] );