@viur/shop-components 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -78,7 +78,7 @@ onBeforeMount(() => {
78
78
  // console.debug(shopStore.state.cartRoot?.['shipping_status']);
79
79
  // By default a cart has always the cheapest shipping set, therefore we can skip this step.
80
80
  // But with the link on verify the user is still able to choose a different shipping.
81
- if (shopStore.state.cartRoot?.['shipping_status'] === 'cheapest') {
81
+ if (['cheapest', 'most_expensive'].includes(shopStore.state.cartRoot?.['shipping_status'])) {
82
82
  console.debug(`Skip cheapest shipping @ %o`, shopStore.state.cartRoot);
83
83
  nextStep().then(() => shopStore.navigateToNext());
84
84
  return;