Skip to content

Commit 2fda8f9

Browse files
authored
Fix product (#105)
* Fixed error in product method of mock-connector. * bumped version
1 parent 94e0886 commit 2fda8f9

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-storefront",
3-
"version": "8.9.0",
3+
"version": "8.9.1",
44
"description": "Build and deploy e-commerce progressive web apps (PWAs) in record time.",
55
"module": "./index.js",
66
"license": "Apache-2.0",

src/mock-connector/product.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import fulfillAPIRequest from '..//props/fulfillAPIRequest'
22
import createProduct from './utils/createProduct'
33
import createAppData from './utils/createAppData'
4-
import getBase64ForImage from '../utils/getBase64ForImage'
54

65
function asciiSum(string = '') {
76
return string.split('').reduce((s, e) => s + e.charCodeAt(), 0)
@@ -51,7 +50,5 @@ async function getPageData(id) {
5150
],
5251
}
5352

54-
result.media.full.src = await getBase64ForImage(result.media.full.src)
55-
5653
return result
5754
}

0 commit comments

Comments
 (0)