diff --git a/CHANGELOG.md b/CHANGELOG.md index e1761cbffe..2112c98e0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -133,6 +133,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed infinite loop when changing checkbox in shipping details - @gibkigonzo (#3656) - Fixed displaying single order in the profile - @andrzejewsky (#3663) - Make microcart ui consistent for all types of products - @gibkigonzo (#3673) +- Fixed missing storeCode in metaInfo - @andrzejewsky (#3674) - Removed showing popup when you have just logged out - @andrzejewsky (#3680) ### Changed / Improved diff --git a/core/helpers/initialStateFactory.ts b/core/helpers/initialStateFactory.ts index 58665772bb..b1e2884028 100644 --- a/core/helpers/initialStateFactory.ts +++ b/core/helpers/initialStateFactory.ts @@ -5,7 +5,11 @@ const initialStateFactory = (defaultState) => { // storing default values for the fields that will be set in createApp const defaultFields = pick(defaultState, ['version', 'config', '__DEMO_MODE__', 'storeView']) - const createInitialState = (currentState) => ({ ...cloneDeep(currentState), ...defaultFields }) + const createInitialState = (currentState) => ({ + ...cloneDeep(currentState), + ...defaultFields, + storeView: { storeCode: currentState.storeView.storeCode } + }) return { createInitialState } }