diff --git a/src/Money.Blazor.Host/Pages/TrendsYear.razor b/src/Money.Blazor.Host/Pages/TrendsYear.razor index ea2db6aa..6e53c507 100644 --- a/src/Money.Blazor.Host/Pages/TrendsYear.razor +++ b/src/Money.Blazor.Host/Pages/TrendsYear.razor @@ -12,7 +12,7 @@ else
@foreach (var model in Models) { - var size = model.TotalAmount.Value / MaxAmount * 100; + var size = MaxAmount == 0 ? 0 : model.TotalAmount.Value / MaxAmount * 100;