diff --git a/src/Http/Middleware/ShareInertiaData.php b/src/Http/Middleware/ShareInertiaData.php index 4f1d3842..625d1ec1 100644 --- a/src/Http/Middleware/ShareInertiaData.php +++ b/src/Http/Middleware/ShareInertiaData.php @@ -22,7 +22,7 @@ public function handle($request, $next) 'show' => Socialstream::show(), 'providers' => Socialstream::providers(), 'hasPassword' => $request->user() && ! is_null($request->user()->password), - 'connectedAccounts' => $request->user() && $request->user()->connectedAccounts, + 'connectedAccounts' => $request->user() ? $request->user()->connectedAccounts : [], ]; }, ]));