CASH-1637

CASH-1637 optional chaining ? not necessary since checking for an array already
This commit is contained in:
CarlNation 2025-10-07 15:10:18 -04:00
parent 03a3046f1b
commit 7f28449d1f

View file

@ -239,7 +239,7 @@ export default {
const promoCodes = Array.isArray(order?.lineItems?.promos)
? order?.lineItems?.promos
?.map((item) => item.promoCode)
.map((item) => item.promoCode)
.filter((code) => code)
.join(", ")
: "";