Skip to content

Commit

Permalink
fix: correct method calls in conditional checks
Browse files Browse the repository at this point in the history
Replaced property access with corresponding getter methods for conditional checks to ensure proper closure evaluation and consistent behavior across different conditions.
  • Loading branch information
kidiatoliny committed Sep 5, 2024
1 parent bd3bc57 commit 755d262
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 755d262

Please sign in to comment.