fix: remove balance from dashboard

This commit is contained in:
juancwu 2026-02-09 13:59:20 +00:00
commit ee64d5e456
2 changed files with 8 additions and 25 deletions

View file

@ -32,17 +32,7 @@ func (h *dashboardHandler) DashboardPage(w http.ResponseWriter, r *http.Request)
return
}
var totalBalance int
for _, space := range spaces {
balance, err := h.expenseService.GetBalanceForSpace(space.ID)
if err != nil {
slog.Error("failed to get balance for space", "error", err, "space_id", space.ID)
continue
}
totalBalance += balance
}
ui.Render(w, r, pages.Dashboard(spaces, totalBalance))
ui.Render(w, r, pages.Dashboard(spaces))
}
func (h *dashboardHandler) CreateSpace(w http.ResponseWriter, r *http.Request) {