Skip to content

Commit 2c3976b

Browse files
committed
Default id to null to prevent access errors
1 parent efde921 commit 2c3976b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Livewire/TwoFactorAuthentication/WebauthnKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class WebauthnKey extends ProfileComponent
2929
{
3030
#[Locked]
31-
public int|string|null $id;
31+
public int|string|null $id = null;
3232

3333
#[Computed]
3434
public function hasPasskeys(): bool

0 commit comments

Comments
 (0)