fix(LOY-119): hiding redeemed rewards
some smaller cleanup on coupon property to avoid optional checks
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user