Skip to content

Commit

Permalink
Merge pull request #19 from luiyongsheng/inertia-connected-account
Browse files Browse the repository at this point in the history
[1.x] fix connected accounts inertia prop
  • Loading branch information
joelbutcher authored Jan 2, 2021
2 parents 5b10b74 + a62cd2b commit b4c317a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/ShareInertiaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [],
];
},
]));
Expand Down

0 comments on commit b4c317a

Please sign in to comment.