Skip to content

Commit

Permalink
Allow false values in checkout (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Aug 9, 2024
1 parent 7c5bf79 commit e899115
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public function options()
$options['settings']['frameTarget'] = $this->id;
$options['settings']['frameInitialHeight'] = $this->height;

$options['settings'] = array_filter(array_merge($options['settings'], $this->settings));
$options['settings'] = array_filter(
array_merge($options['settings'], $this->settings),
fn ($option) => ! is_null($option)
);

return $options;
}
Expand Down

0 comments on commit e899115

Please sign in to comment.