fix(LOY-119): hiding redeemed rewards

some smaller cleanup on coupon property to avoid optional checks
This commit is contained in:
Christian Andolf
2025-02-10 13:37:03 +01:00
parent 967c776ab8
commit 4459d5762c
4 changed files with 35 additions and 11 deletions

View File

@@ -98,8 +98,8 @@ export default function SurprisesNotification({
const updates = surprises
.map((surprise) => {
const coupons = surprise.coupons
?.map((coupon) => {
if (coupon?.couponCode) {
.map((coupon) => {
if (coupon.couponCode) {
return {
rewardId: surprise.id,
couponCode: coupon.couponCode,