Skip to content

Commit

Permalink
fix(invitation): npe in checking application (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur authored Mar 5, 2024
1 parent ec7c563 commit 6aace0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Applications/InvitationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function view(Request $request)
/** @var Application */
$application = Auth::user()->application;

if ($application->isActive()) {
if ($application?->isActive()) {
throw ValidationException::withMessages([
"code" => "You cannot join another dealership while you still have an active, uncanceled application.",
]);
Expand Down

0 comments on commit 6aace0e

Please sign in to comment.