diff --git a/src/VoucherService/Token.php b/src/VoucherService/Token.php index d7e3a2a3..73a336de 100644 --- a/src/VoucherService/Token.php +++ b/src/VoucherService/Token.php @@ -88,7 +88,7 @@ public static function isUsedToken(string $code, int $maxUsages = 1): bool public function check(int $maxUsages = null, bool $isCheckout = false): bool { if (isset($maxUsages)) { - if ($this->getUsages() + Reservation::getReservationCount($this->getToken()) - (int)$isCheckout <= $maxUsages) { + if ($this->getUsages() + Reservation::getReservationCount($this->getToken()) - (int)$isCheckout < $maxUsages) { return true; }