From 1b5bc43ccab8ec54e1a7297268a7b5453f12207c Mon Sep 17 00:00:00 2001 From: readme-bot Date: Sat, 18 May 2024 14:36:22 +0300 Subject: [PATCH] fix pie display when all value is 0 --- 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] );