diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js index 7d03c8fa..b3130ac7 100644 --- a/src/helpers/cms-content-helper.js +++ b/src/helpers/cms-content-helper.js @@ -271,7 +271,9 @@ function getStoreValueFromString(str) { // eslint-disable-next-line no-restricted-syntax for (const s of str.split('.')) { if (s === 'getters') continue; // For backward compatibility - if (typeof storeOrStateObject[s] !== 'undefined') { + // TODO: I don't think this next line is doing what they think it's doing. + // eslint-disable-next-line eqeqeq, valid-typeof + if (typeof storeOrStateObject[s] != undefined) { storeOrStateObject = storeOrStateObject[s]; } else { break;