Skip to content

Commit

Permalink
Merge pull request #13 from uteq/fix-for-error-when-no-step-available
Browse files Browse the repository at this point in the history
Fix for error when no step available
  • Loading branch information
nathanjansen committed Mar 1, 2021
2 parents b661c9a + 56552bc commit 2f323e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/WithSteps.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function validateStep($step = null, $setNext = true)
$data = $this->customValidate($this->mapFields($resolvedFields, $this->store), $rules);

if (! $this->model->id) {
$this->completedSteps[] = $step->name;
$this->completedSteps[] = optional($step)->name;
}

$step = $this->step($step);
Expand Down

0 comments on commit 2f323e1

Please sign in to comment.