-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix destructuring #17
base: es6-rewrite
Are you sure you want to change the base?
Conversation
Convert body to JSON, add body parameter to errors, fix destructuring
const { PortfolioItem: { chainId, skuUuid } } = body; | ||
|
||
return { chainId, skuUuid }; | ||
const body = JSON.parse(res.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the other PR. I'm not sure the JSON.parse()
is needed. Please correct me if I'm wrong!
@@ -105,10 +110,10 @@ export default class Bids extends Base { | |||
|
|||
checkStatus(res); | |||
|
|||
const { body } = res; | |||
const { PortfolioItem: { chainId, skuUuid } } = body; | |||
const body = JSON.parse(res.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
@@ -143,9 +148,9 @@ export default class Bids extends Base { | |||
|
|||
checkStatus(res); | |||
|
|||
const { body } = res; | |||
const { PortfolioItem: { chainId, skuUuid } } = body; | |||
const body = JSON.parse(res.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
Convert body to JSON, add body parameter to errors, fix destructuring