Skip to content

Commit

Permalink
Handle fromSubmission potentially returning null
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Sep 2, 2024
1 parent 254e348 commit 64d7814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/AddFromSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class AddFromSubmission
{
public function handle(SubmissionCreated $event)
{
Subscriber::fromSubmission($event->submission)->subscribe();
Subscriber::fromSubmission($event->submission)?->subscribe();
}
}

0 comments on commit 64d7814

Please sign in to comment.