Skip to content

Commit

Permalink
fix pie display when all value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
domechn committed May 18, 2024
1 parent ce88131 commit 1b5bc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/wallet-assets-percentage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const App = ({
useState<WalletAssetsPercentageData>([]);

const chartHasData = useMemo(
() => !_(walletAssetsPercentage).isEmpty(),
() => !_(walletAssetsPercentage).filter(p => p.value > 0).isEmpty(),
[walletAssetsPercentage]
);

Expand Down

0 comments on commit 1b5bc43

Please sign in to comment.