From 755d262015e465daa26886be84790bb7de52da20 Mon Sep 17 00:00:00 2001 From: kid Date: Thu, 5 Sep 2024 00:27:49 -0100 Subject: [PATCH] fix: correct method calls in conditional checks Replaced property access with corresponding getter methods for conditional checks to ensure proper closure evaluation and consistent behavior across different conditions. --- src/FilamentEditProfilePlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FilamentEditProfilePlugin.php b/src/FilamentEditProfilePlugin.php index 91f8a41..afe6d53 100644 --- a/src/FilamentEditProfilePlugin.php +++ b/src/FilamentEditProfilePlugin.php @@ -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); }