Skip to content

Commit

Permalink
Fixed size error
Browse files Browse the repository at this point in the history
  • Loading branch information
iyarsius committed May 16, 2022
1 parent 02e120f commit 3a2cf3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stockx-scraper",
"version": "1.6.3",
"version": "1.6.5",
"description": "Scrape sneakers data from stockx with dynamic parmeters like proxy (static or rotating), country and currency.",
"main": "./src/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ module.exports = {

for (const key in variants) {
const shoe = variants[key]
const sizeData = shoe.sizeChart.baseSize;
const sizeData = shoe.sizeChart?.baseSize;

if (!sizeData) continue;

const usSize = sizeData.replace(/[A-Z]|[a-z]/g, "")
let sizeConverter = convert.men.find(s => s.us === usSize)
Expand Down

1 comment on commit 3a2cf3d

@iyarsius
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6 fix

Please sign in to comment.