Skip to content

Commit

Permalink
Fixed inproper condition at checking if a coupon is depleted (0 !== n…
Browse files Browse the repository at this point in the history
…ull)
  • Loading branch information
fulopattila122 committed Aug 24, 2024
1 parent 7e628c9 commit 47058a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Promotion/Models/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function isExpired(): bool

public function isDepleted(): bool
{
if (!$this->usage_limit) {
if (null === $this->usage_limit) {
return false;
}

Expand Down

0 comments on commit 47058a0

Please sign in to comment.