diff --git a/internal/handlers/web/invoices.go b/internal/handlers/web/invoices.go index d791068..0d83dd5 100644 --- a/internal/handlers/web/invoices.go +++ b/internal/handlers/web/invoices.go @@ -106,12 +106,8 @@ func handleInvoiceSearch(w http.ResponseWriter, r *http.Request, session *api.Se invoice["id"] = fmt.Sprintf("%.0f", id) } - // log.Printf("Invoice found: %+v", invoice) - - if invoice != nil { - // Add the buttons to display - invoice["buttons"] = getInvoiceStatusButtons(invoice["id"].(string), invoice["status"].(string)) - } + // Add the buttons to display + invoice["buttons"] = getInvoiceStatusButtons(invoice["id"].(string), invoice["status"].(string)) err = tmpl.ExecuteTemplate(w, "invoice_search_results", invoice) if err != nil {