CASH-1637
CASH-1637 optional chaining ? not necessary since checking for an array already
This commit is contained in:
parent
03a3046f1b
commit
7f28449d1f
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ export default {
|
||||||
|
|
||||||
const promoCodes = Array.isArray(order?.lineItems?.promos)
|
const promoCodes = Array.isArray(order?.lineItems?.promos)
|
||||||
? order?.lineItems?.promos
|
? order?.lineItems?.promos
|
||||||
?.map((item) => item.promoCode)
|
.map((item) => item.promoCode)
|
||||||
.filter((code) => code)
|
.filter((code) => code)
|
||||||
.join(", ")
|
.join(", ")
|
||||||
: "";
|
: "";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue