Skip to content

Commit 4ef1b52

Browse files
committed
hotfix: customers cannot open accounts
1 parent 3083b76 commit 4ef1b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/customers/customer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h1 class="text-lg font-extrabold">Banking</h1>
9191
<p class="text-muted">Account(s) available for this customer.</p>
9292
</div>
9393
<div id="customer-accounts">{{ template "accounts" .Customer }}</div>
94-
{{ if lt (len .Customer.Accounts) 2 }}
94+
{{ if and (lt (len .Customer.Accounts) 2) .SignedIn }}
9595
<div class="flex justify-start">
9696
<button hx-get="/customers/{{ .Customer.ID }}/open-account" hx-trigger="click" hx-target="body"
9797
hx-swap="beforeend" class="btn-primary px-3 py-1.5 text-sm">Open

0 commit comments

Comments
 (0)