diff --git a/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs b/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs index e32c4ef..f9dbde8 100644 --- a/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs +++ b/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs @@ -393,7 +393,7 @@ private bool IsCampaignStateValid(VoucherCampaign campaign) private bool IsCampaignDateValid(VoucherCampaign campaign) => DateTime.UtcNow > campaign.FromDate - || (campaign.ExpirationDate.HasValue && campaign.ExpirationDate.Value > DateTime.UtcNow); + && (!campaign.ExpirationDate.HasValue || campaign.ExpirationDate.Value > DateTime.UtcNow); private async Task PublishVoucherSoldEvent(Guid? paymentRequestId, VoucherCampaign voucherCampaign, Voucher voucher) {