Skip to content

Commit

Permalink
Handle fromSubmission potentially returning null (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Sep 2, 2024
1 parent 254e348 commit bb2b1a3
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 bb2b1a3

Please sign in to comment.