Skip to content

Commit

Permalink
add more helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdallaMohammed committed Jan 8, 2021
1 parent 8b5c61d commit ace562a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function mergeDataWhen($condition, Closure $callback)
$data = [];
if ((is_integer($condition) && $this->isStep($this->getStepId($condition)))
|| (is_bool($condition) && $condition === true)
|| (is_callable($condition) && is_bool(value($condition($this))))) {
|| (is_callable($condition) && is_bool(value($condition($this))) && value($condition($this)) === true)) {
$data = value($callback($this));
}

Expand Down

0 comments on commit ace562a

Please sign in to comment.