Skip to content

Commit

Permalink
hotfix: customers cannot open accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellodotgg committed Oct 13, 2024
1 parent 3083b76 commit 4ef1b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/customers/customer.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1 class="text-lg font-extrabold">Banking</h1>
<p class="text-muted">Account(s) available for this customer.</p>
</div>
<div id="customer-accounts">{{ template "accounts" .Customer }}</div>
{{ if lt (len .Customer.Accounts) 2 }}
{{ if and (lt (len .Customer.Accounts) 2) .SignedIn }}
<div class="flex justify-start">
<button hx-get="/customers/{{ .Customer.ID }}/open-account" hx-trigger="click" hx-target="body"
hx-swap="beforeend" class="btn-primary px-3 py-1.5 text-sm">Open
Expand Down

0 comments on commit 4ef1b52

Please sign in to comment.