diff --git a/src/Filament/SocialstreamPlugin.php b/src/Filament/SocialstreamPlugin.php index f9326378..58a2fcc8 100644 --- a/src/Filament/SocialstreamPlugin.php +++ b/src/Filament/SocialstreamPlugin.php @@ -5,6 +5,7 @@ use Filament\Contracts\Plugin; use Filament\Panel; use Illuminate\Support\Facades\Config; +use Illuminate\Support\ViewErrorBag; use JoelButcher\Socialstream\Features; use JoelButcher\Socialstream\Socialstream; @@ -24,7 +25,7 @@ public function register(Panel $panel): void $panel->renderHook('panels::auth.login.form.after', function () { return Socialstream::show() ? view(config('socialstream.component', 'socialstream::components.socialstream'), [ - 'errors' => session('errors')?->get('socialstream') ?? [], + 'errors' => session('errors') ?? new ViewErrorBag(), ]) : ''; }); }