@graphcommerce/magento-cart-payment-method 2.111.5 → 2.111.9

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.
@@ -65,7 +65,7 @@ export default function PaymentMethodButton(props: PaymentMethodButtonProps) {
65
65
  button
66
66
  ) : (
67
67
  <>
68
- <>{button}</>
68
+ {button}
69
69
  <ApolloCartErrorAlert key='error' error={errorVal} />
70
70
  </>
71
71
  )
@@ -73,7 +73,7 @@ export default function PaymentMethodContextProvider(props: PaymentMethodContext
73
73
  }}
74
74
  >
75
75
  {Object.entries(modules).map(([method, module]) => {
76
- const PaymentHandler = module.PaymentHandler
76
+ const { PaymentHandler } = module
77
77
  if (!PaymentHandler) return null
78
78
  return <PaymentHandler key={method} />
79
79
  })}
@@ -130,7 +130,7 @@ export default function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
130
130
  setSelectedModule(modules?.[foundMethod?.code ?? ''])
131
131
  }, [methods, modules, paymentMethod, selectedMethod?.code, setSelectedMethod, setSelectedModule])
132
132
 
133
- if (!methods || methods.length < 1) return <></>
133
+ if (!methods || methods.length < 1) return null
134
134
 
135
135
  return (
136
136
  <Form onSubmit={submitHandler} noValidate classes={{ root: classes.formRoot }}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-cart-payment-method",
3
- "version": "2.111.5",
3
+ "version": "2.111.9",
4
4
  "sideEffects": false,
5
5
  "engines": {
6
6
  "node": "14.x"
@@ -17,20 +17,20 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
20
- "@graphcommerce/eslint-config-pwa": "^3.1.5",
20
+ "@graphcommerce/eslint-config-pwa": "^3.1.6",
21
21
  "@graphcommerce/prettier-config-pwa": "^3.0.4",
22
22
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
23
23
  "@playwright/test": "^1.16.2"
24
24
  },
25
25
  "dependencies": {
26
26
  "@apollo/client": "^3.4.16",
27
- "@graphcommerce/framer-scroller": "^1.0.4",
28
- "@graphcommerce/graphql": "^2.105.5",
29
- "@graphcommerce/image": "^2.105.4",
30
- "@graphcommerce/magento-cart": "^3.8.0",
31
- "@graphcommerce/magento-store": "^3.3.5",
32
- "@graphcommerce/next-ui": "^3.19.0",
33
- "@graphcommerce/react-hook-form": "^2.104.0",
27
+ "@graphcommerce/framer-scroller": "^1.1.2",
28
+ "@graphcommerce/graphql": "^2.105.6",
29
+ "@graphcommerce/image": "^2.105.5",
30
+ "@graphcommerce/magento-cart": "^3.8.4",
31
+ "@graphcommerce/magento-store": "^3.3.9",
32
+ "@graphcommerce/next-ui": "^3.20.2",
33
+ "@graphcommerce/react-hook-form": "^2.104.1",
34
34
  "@lingui/macro": "^3.12.1",
35
35
  "@material-ui/core": "^4.12.3",
36
36
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -41,5 +41,5 @@
41
41
  "react-dom": "^17.0.1",
42
42
  "type-fest": "^2.5.1"
43
43
  },
44
- "gitHead": "f079c0b5b96dd1a048ca4d3c1d07916353c6bc33"
44
+ "gitHead": "688a7042901bf36f8ab8bbf8e1886570a5350b9e"
45
45
  }