Skip to content

Commit

Permalink
Fix product (#105)
Browse files Browse the repository at this point in the history
* Fixed error in product method of mock-connector.

* bumped version
  • Loading branch information
markbrocato authored Jun 12, 2020
1 parent 94e0886 commit 2fda8f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-storefront",
"version": "8.9.0",
"version": "8.9.1",
"description": "Build and deploy e-commerce progressive web apps (PWAs) in record time.",
"module": "./index.js",
"license": "Apache-2.0",
Expand Down
3 changes: 0 additions & 3 deletions src/mock-connector/product.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fulfillAPIRequest from '..//props/fulfillAPIRequest'
import createProduct from './utils/createProduct'
import createAppData from './utils/createAppData'
import getBase64ForImage from '../utils/getBase64ForImage'

function asciiSum(string = '') {
return string.split('').reduce((s, e) => s + e.charCodeAt(), 0)
Expand Down Expand Up @@ -51,7 +50,5 @@ async function getPageData(id) {
],
}

result.media.full.src = await getBase64ForImage(result.media.full.src)

return result
}

0 comments on commit 2fda8f9

Please sign in to comment.