Skip to content

Commit efde921

Browse files
committed
Unset id on load if webauthn key not found
1 parent 37a8f4e commit efde921

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Livewire/TwoFactorAuthentication/WebauthnKey.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ public function webauthnKey(): ?WebauthnKeyModel
6363
]);
6464
}
6565

66+
public function mount(): void
67+
{
68+
if (! $this->webauthnKey) {
69+
$this->id = null;
70+
}
71+
}
72+
6673
public function render(): string
6774
{
6875
return <<<'HTML'

0 commit comments

Comments
 (0)