Skip to content

Commit 59a4470

Browse files
authored
Treat coupons as expired when we reach expiry date (#16082)
2 parents f013793 + 72becff commit 59a4470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Sources/Yosemite/PointOfSale/Coupons/POSCoupon.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public struct POSCoupon: Equatable, Hashable {
1717
guard let dateExpires = dateExpires else {
1818
return false
1919
}
20-
return dateExpires < Date()
20+
return dateExpires <= Date()
2121
}
2222
}

0 commit comments

Comments
 (0)