refactor: label

This commit is contained in:
effe 2024-09-11 16:59:48 -04:00
parent 548c71e76d
commit 6df84a4b30

View file

@ -193,7 +193,7 @@ public class DashboardView extends Div {
final var people = personService.findAllExcludeUsers().stream()
.filter(person -> personService.calculateNetBalance(person).compareTo(BigDecimal.ZERO) != 0)
.toList();
if (people.isEmpty()) return generatePlaceholderChartScript("bottomLeftChart", "No Data Available");
if (people.isEmpty()) return generatePlaceholderChartScript("bottomLeftChart", "All Payments Settled");
Map<String, Double> personData = new LinkedHashMap<>();