Skip to content

Commit

Permalink
[Fix] Refreshing component after disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 28, 2024
1 parent b80527b commit 84e564a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pages/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getConfirmationForm(): array
return [
TextInput::make('current_password')
->label(__('Password'))
->dehydrateStateUsing(fn ($state) => filled($state))
->dehydrateStateUsing(fn($state) => filled($state))
->required()
->password()
->inlineLabel()
Expand Down Expand Up @@ -258,7 +258,7 @@ public function disableTwoFactorAuthentication(DisableTwoFactorAuthentication $d
$this->showingConfirmation = false;
$this->showingRecoveryCodes = false;

$this->mount();
$this->user->refresh();
}

public function showRecoveryCodes(): void
Expand All @@ -272,4 +272,4 @@ public function regenerateRecoveryCodes(GenerateNewRecoveryCodes $generate): voi

$this->showingRecoveryCodes = true;
}
}
}

0 comments on commit 84e564a

Please sign in to comment.