fix(LOY-39): refetch rewards when redeemed

update expiration date text

possible to redeem rewards with coupon code
This commit is contained in:
Christian Andolf
2024-12-18 17:43:19 +01:00
parent c701c067b4
commit 633d259ce0
13 changed files with 181 additions and 117 deletions

View File

@@ -1,7 +1,7 @@
import type { Reward } from "@/server/routers/contentstack/reward/output"
export interface Surprise extends Omit<Reward, "operaRewardId"> {
coupons: { couponCode?: string; expiresAt?: string }[]
export interface Surprise extends Omit<Reward, "operaRewardId" | "couponCode"> {
coupon: { couponCode?: string | undefined; expiresAt?: string }[]
}
export interface SurprisesProps {