Skip to content

Commit

Permalink
Reference the SKU code that's in the attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Mataya committed Jul 7, 2016
1 parent 2c5dcce commit 38b9dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/catalog/pdp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Pdp extends Component {
}

const quantity = this.state.quantity;
const skuId = this.firstSku.code;
const skuId = _.get(this.firstSku, 'attributes.code.v', '');
actions.addLineItem(skuId, quantity)
.then(() => {
actions.toggleCart();
Expand Down

0 comments on commit 38b9dbf

Please sign in to comment.