Skip to content

Commit e4f55eb

Browse files
authored
Update TwoFactorAuthentication.php
Fix potential error with no context record or state
1 parent a72253f commit e4f55eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Livewire/TwoFactorAuthentication.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ public function form(Schema $schema): Schema
149149
->label(__('filament-two-factor-authentication::components.2fa.code'))
150150
->required(),
151151
])
152-
->statePath('data');
152+
->statePath('data')
153+
->model($this->getUser());
153154
}
154155

155156
protected function disableTwoFactorAuthenticationAction(): Action

0 commit comments

Comments
 (0)