CASH-1315 refactor to avoid null being coerced into a string

This commit is contained in:
AdamCaouetteSafelite 2025-10-20 08:48:44 -04:00
parent 222f27ee75
commit 504a774863

View file

@ -267,7 +267,7 @@ export default {
const inshopFirstDate = Array.isArray(this.selectableDatesInshop) const inshopFirstDate = Array.isArray(this.selectableDatesInshop)
? this.selectableDatesInshop[0]?.date ? this.selectableDatesInshop[0]?.date
: null; : null;
return this.isMobileSelected ? mobileFirstDate + "-mobile" : inshopFirstDate; return (this.isMobileSelected && mobileFirstDate) ? mobileFirstDate + "-mobile" : inshopFirstDate;
}, },
}, },
methods: { methods: {