commercelayer-react-components icon indicating copy to clipboard operation
commercelayer-react-components copied to clipboard

Fix: remove `hasExternalPrice` prop on `<LineItemQuantity>` component

Open gciotola opened this issue 6 months ago • 0 comments

What I did

This reverts the changes done in https://github.com/commercelayer/commercelayer-react-components/pull/445 and removes the hasExternalPrice prop on the LineItemQuantity component.

Mainly we don't need anymore to enforce the update of line_item using the hasExternalPrice prop, since now it has been fixed at API level. The _external_price attribute is now being saved on the line_item resource.

How to test

Checklist

  • [x] Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • [x] Make sure to add/update documentation regarding your changes.
  • [ ] You are NOT deprecating/removing a feature.

gciotola avatar Jan 04 '24 09:01 gciotola