fix: render Add passkey button on empty state

The Empty component ignores children, so the button was silently dropped
when using <Empty> as an htm wrapper. Inline the card structure instead.
This commit is contained in:
2026-07-28 16:45:34 +00:00
parent 3de82e3b9b
commit 244576b8eb
+3 -2
View File
@@ -228,12 +228,13 @@ function CredentialsPage() {
Add passkey Add passkey
</button>`, </button>`,
}), }),
html`<Empty text="No passkeys registered"> html`<div class="card" key="empty">
<div class="text-muted text-sm">No passkeys registered</div>
<button class="btn btn-sm btn-primary" <button class="btn btn-sm btn-primary"
onClick=${() => webauthnSupported() && addCredentialModal()}> onClick=${() => webauthnSupported() && addCredentialModal()}>
Add passkey Add passkey
</button> </button>
</Empty>`, </div>`,
]; ];
} }