fix: Parse Saleor JSON description format to plain text

- Add parseDescription() helper to extract text from EditorJS JSON
- Update getLocalizedProduct to use parsed description
- Fix product descriptions showing raw JSON on frontend
This commit is contained in:
Unchained
2026-03-21 13:06:14 +02:00
parent 01d553bfea
commit 3aaad57076
2 changed files with 37 additions and 1 deletions

View File

@@ -32,4 +32,5 @@ export {
isProductAvailable,
formatPrice,
getLocalizedProduct,
parseDescription,
} from "./products";