Skip to content

Commit

Permalink
no rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
segy committed Jul 1, 2022
1 parent 3aec652 commit 32b94b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public function getRoundingAmount($type = '~'): Decimal
{
$this->getTotal($type);

return $this->roundingAmount;
return $this->roundingAmount ?? Decimal::fromInteger(0);
}

/**
Expand Down

0 comments on commit 32b94b4

Please # to comment.