CASH-1315 refactor to avoid null being coerced into a string
This commit is contained in:
parent
222f27ee75
commit
504a774863
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ export default {
|
|||
const inshopFirstDate = Array.isArray(this.selectableDatesInshop)
|
||||
? this.selectableDatesInshop[0]?.date
|
||||
: null;
|
||||
return this.isMobileSelected ? mobileFirstDate + "-mobile" : inshopFirstDate;
|
||||
return (this.isMobileSelected && mobileFirstDate) ? mobileFirstDate + "-mobile" : inshopFirstDate;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue