fix(): Cart translation sync (#14327)
This commit is contained in:
committed by
GitHub
parent
21e3bdb8ae
commit
1743ed7f04
@@ -84,7 +84,7 @@ export const updateCartItemsTranslationsStep = createStep(
|
||||
try {
|
||||
const isTranslationEnabled = FeatureFlag.isFeatureEnabled("translation")
|
||||
|
||||
if (!isTranslationEnabled || !data.locale) {
|
||||
if (!isTranslationEnabled) {
|
||||
return new StepResponse(void 0, [])
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ export function applyTranslationsToItems<
|
||||
applyTranslation(itemAny, entity, key, translationKey)
|
||||
}
|
||||
}
|
||||
itemAny.title = item.product_title ?? item.title
|
||||
})
|
||||
|
||||
return item
|
||||
|
||||
Reference in New Issue
Block a user