@graphcommerce/magento-cart 9.0.4-canary.6 → 9.0.4-canary.8
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.4-canary.8
|
|
4
|
+
|
|
5
|
+
## 9.0.4-canary.7
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2479](https://github.com/graphcommerce-org/graphcommerce/pull/2479) [`ae5e72c`](https://github.com/graphcommerce-org/graphcommerce/commit/ae5e72ccf1c8218ace3cca1c4e52ec8d46821a27) - Solve issue where the total of the cart was zero due to discount or store credit the user couldn't proceed to the checkout. We now check for items and errors instead of the total. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
10
|
+
|
|
3
11
|
## 9.0.4-canary.6
|
|
4
12
|
|
|
5
13
|
## 9.0.4-canary.5
|
|
@@ -40,7 +40,7 @@ export function CartStartCheckout(props: CartStartCheckoutProps) {
|
|
|
40
40
|
} = props
|
|
41
41
|
|
|
42
42
|
const shouldLoginToContinue = useCheckoutShouldLoginToContinue()
|
|
43
|
-
const hasTotals = (cart?.prices?.grand_total?.value ?? 0) > 0
|
|
43
|
+
const hasTotals = (cart?.prices?.grand_total?.value ?? 0) > 0 || !!cart?.items?.length
|
|
44
44
|
const hasErrors = cart?.items?.some((item) => (item?.errors?.length ?? 0) > 0)
|
|
45
45
|
|
|
46
46
|
return (
|
|
@@ -28,7 +28,7 @@ export function CartStartCheckoutLinkOrButton(props: CartStartCheckoutLinkOrButt
|
|
|
28
28
|
|
|
29
29
|
const shouldLoginToContinue = useCheckoutShouldLoginToContinue()
|
|
30
30
|
|
|
31
|
-
const hasTotals = (cart?.prices?.grand_total?.value ?? 0) > 0
|
|
31
|
+
const hasTotals = (cart?.prices?.grand_total?.value ?? 0) > 0 || !!cart?.items?.length
|
|
32
32
|
const hasErrors = cart?.items?.some((item) => (item?.errors?.length ?? 0) > 0)
|
|
33
33
|
|
|
34
34
|
return (
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.4-canary.
|
|
5
|
+
"version": "9.0.4-canary.8",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.4-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0.4-canary.
|
|
18
|
-
"@graphcommerce/framer-scroller": "^9.0.4-canary.
|
|
19
|
-
"@graphcommerce/framer-utils": "^9.0.4-canary.
|
|
20
|
-
"@graphcommerce/graphql": "^9.0.4-canary.
|
|
21
|
-
"@graphcommerce/image": "^9.0.4-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.0.4-canary.
|
|
23
|
-
"@graphcommerce/magento-graphql": "^9.0.4-canary.
|
|
24
|
-
"@graphcommerce/magento-store": "^9.0.4-canary.
|
|
25
|
-
"@graphcommerce/next-ui": "^9.0.4-canary.
|
|
26
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.
|
|
27
|
-
"@graphcommerce/react-hook-form": "^9.0.4-canary.
|
|
28
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.4-canary.8",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.8",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.0.4-canary.8",
|
|
18
|
+
"@graphcommerce/framer-scroller": "^9.0.4-canary.8",
|
|
19
|
+
"@graphcommerce/framer-utils": "^9.0.4-canary.8",
|
|
20
|
+
"@graphcommerce/graphql": "^9.0.4-canary.8",
|
|
21
|
+
"@graphcommerce/image": "^9.0.4-canary.8",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.0.4-canary.8",
|
|
23
|
+
"@graphcommerce/magento-graphql": "^9.0.4-canary.8",
|
|
24
|
+
"@graphcommerce/magento-store": "^9.0.4-canary.8",
|
|
25
|
+
"@graphcommerce/next-ui": "^9.0.4-canary.8",
|
|
26
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.8",
|
|
27
|
+
"@graphcommerce/react-hook-form": "^9.0.4-canary.8",
|
|
28
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.8",
|
|
29
29
|
"@lingui/core": "^4.2.1",
|
|
30
30
|
"@lingui/macro": "^4.2.1",
|
|
31
31
|
"@lingui/react": "^4.2.1",
|