Skip to content

Commit 7a4ce71

Browse files
authored
Allow showing the menu while disconnected
Allow showing the menu while disconnected
2 parents 9870464 + 8378071 commit 7a4ce71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Livewire/MenuLogins.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public function render(): View
2727
]);
2828
}
2929

30-
protected function getCurrentUser(): string
30+
protected function getCurrentUser(): ?string
3131
{
32-
return Filament::auth()->user()->{$this->plugin->getColumn()};
32+
return Filament::auth()->user()?->{$this->plugin->getColumn()};
3333
}
3434

3535
public function loginAs(string $credentials): RedirectResponse | Redirector

0 commit comments

Comments
 (0)