Skip to content

Commit

Permalink
fix: if rate is undefined set 0 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Mar 25, 2024
1 parent 476bf32 commit f87a441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/ShippingMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getRate()
public function getTitle()
{
$rate = number_format(
$this->Rate,
$this->Rate ?? 0,
2,
ShopCurrency::config()->decimal_delimiter,
ShopCurrency::config()->thousand_delimiter
Expand Down

0 comments on commit f87a441

Please sign in to comment.