Skip to content

Commit

Permalink
Merge pull request #79 from Bird87ZA/fix-test-failure
Browse files Browse the repository at this point in the history
Fixed bug where tests would fail
  • Loading branch information
freekmurze authored Apr 6, 2023
2 parents 4fab926 + 2b6a7b9 commit 3449302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/StepComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function showStep(string $stepName)

public function hasPreviousStep()
{
return $this->allStepNames[0] !== Livewire::getAlias(static::class);
return !empty($this->allStepNames) && $this->allStepNames[0] !== Livewire::getAlias(static::class);
}

public function hasNextStep()
Expand Down

0 comments on commit 3449302

Please sign in to comment.