Skip to content

Commit

Permalink
fix ->isEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Sep 17, 2024
1 parent 90ef081 commit 0ca31d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilamentInvoicesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function getId(): string
public function register(Panel $panel): void
{
if(class_exists(Module::class)){
if(\Nwidart\Modules\Facades\Module::find('FilamentInvoices')->isEnabled()){
if(\Nwidart\Modules\Facades\Module::find('FilamentInvoices')?->isEnabled()){
$this->isActive = true;
}
}
Expand Down

0 comments on commit 0ca31d9

Please sign in to comment.