Skip to content

Commit

Permalink
fix item condition storage
Browse files Browse the repository at this point in the history
  • Loading branch information
n1crack committed Aug 31, 2023
1 parent 5f9ac07 commit 4b14d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function getMeta(string $key, mixed $default): mixed
return $this->meta[$key] ?? $default;
}

private function updateItemStorage()
public function updateItemStorage()
{
$this->updateConditionPrice();

Expand Down
2 changes: 2 additions & 0 deletions src/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public function condition(Condition $condition)

$this->calculateConditionPrices();

app(config('cart.instance'))->updateItemStorage();

return $this;
}

Expand Down

0 comments on commit 4b14d5e

Please sign in to comment.