Skip to content
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

Open
wants to merge 1 commit into
base: es6-rewrite
Choose a base branch
from
Open

Conversation

matthew1232
Copy link

Convert body to JSON, add body parameter to errors, fix destructuring

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);
Copy link
Owner

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);
Copy link
Owner

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);
Copy link
Owner

Choose a reason for hiding this comment

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

and here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants