diff --git a/CHANGELOG.md b/CHANGELOG.md index 05b2c425d7..4445b4e226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Built-in module for detecting device type based on UserAgent with SSR support - @Fifciu - Update to `storefront-query-builder` version `1.0.0` - @cewald (#4234) - Move generating files from webpack config to script @gibkigonzo (#4236) +- Add correct type matching to `getConfigurationMatchLevel` - @cewald (#4241) ### Fixed diff --git a/core/modules/catalog/helpers/index.ts b/core/modules/catalog/helpers/index.ts index b62bea2197..5bdaaaa8ed 100644 --- a/core/modules/catalog/helpers/index.ts +++ b/core/modules/catalog/helpers/index.ts @@ -62,7 +62,7 @@ const getConfigurationMatchLevel = (configuration, variant): number => { return [].concat(configuration[configProperty]) .map(f => toString(f.id)) - .includes(variantPropertyId) + .includes(toString(variantPropertyId)) }) .filter(Boolean) .length