Skip to content

Commit

Permalink
Update ShippingModifiers.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lguichard committed Mar 1, 2024
1 parent 68398b1 commit 617f167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Base/ShippingModifiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public function add($modifier)
*/
public function remove($modifier)
{
$this->modifiers->forget($modifier);
$this->modifiers = $this->modifiers->reject(fn ($value) => $value == $modifier);
}
}

0 comments on commit 617f167

Please sign in to comment.