fix divide by zero bug on pie chart
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletPieChartTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletPieChartTileViewModel.cs
@@ -60,7 +60,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
var normalDecimalAmount = normalAmount.ToDecimal(MoneyUnit.BTC);
var totalDecimalAmount = privateDecimalAmount + normalDecimalAmount;
- var pcPrivate = (double)(privateDecimalAmount / totalDecimalAmount);
+ var pcPrivate = totalDecimalAmount == 0M ? 0d : (double)(privateDecimalAmount / totalDecimalAmount);
var pcNormal = 1 - pcPrivate;
TestDataPoints = new List<(string, double)>

fix divide by zero bug on pie chart