Skip to content

Commit

Permalink
Merge pull request #43 from kidiatoliny/shouldShowSanctumTokenscondit…
Browse files Browse the repository at this point in the history
…ionnotwork

fix: correct method calls in conditional checks
  • Loading branch information
joaopaulolndev authored Sep 5, 2024
2 parents e9a3656 + 755d262 commit a37c641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FilamentEditProfilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ private function registerLivewireComponents(): void
$components->put('edit_password_form', EditPasswordForm::class);
}

if ($this->shouldShowDeleteAccountForm) {
if ($this->getShouldShowDeleteAccountForm()) {
$components->put('delete_account_form', DeleteAccountForm::class);
}

if ($this->sanctumTokens) {
if ($this->getShouldShowSanctumTokens()) {
$components->put('sanctum_tokens', SanctumTokens::class);
}

if ($this->shouldShowBrowserSessionsForm) {
if ($this->getShouldShowBrowserSessionsForm()) {
$components->put('browser_sessions_form', BrowserSessionsForm::class);
}

Expand Down

0 comments on commit a37c641

Please sign in to comment.