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)
|
||||
? order?.lineItems?.promos
|
||||
?.map((item) => item.promoCode)
|
||||
.map((item) => item.promoCode)
|
||||
.filter((code) => code)
|
||||
.join(", ")
|
||||
: "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue