Closed Skidragon closed 3 years ago
Thanks for the PR @Skidragon!
Are you happy for me mark this ready for review?
@notrab yep!
@notrab Should we implicitly add a quantity of 1 to each item in setItems? I noticed in defaultItems doesn't have a default quantity added to the item.
Sounds good! I don’t think that would cause any backwards compatibility issues so feel free to add it to this PR and I’ll get it merged 🔥
@notrab I made the update to the documentation, I think the CartProvider defaultItems may need to have a quantity of 1 implicitly set also for consitancy and the docs doesn't talk about it either but I believe it should be for a separate PR since this is for setItems only and don't want to mix concerns?
@Skidragon sure.
Is this PR ready for review now? 😄
@Skidragon sure.
Is this PR ready for review now? 😄
Lol yeah. I got nervous and just made sure the tests covered everything.
@notrab the small things have been added with tests still passing :)
:tada: This PR is included in version 1.11.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
The reason why I made a change to the setItems function is because I was getting an NaN for totalItems.