@funnelsgrove/payments 0.22.0 → 0.22.1

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.
@@ -64,10 +64,11 @@ export function SharedStripeCheckoutV2CheckoutSessionForm({ copy = defaultChecko
64
64
  const walletAriaLabel = walletPaymentMethods
65
65
  .map((method) => method === 'applePay' ? walletButtonLabel : 'Google Pay')
66
66
  .join(' / ');
67
- const showWalletMethod = presentation !== 'inline' && effectiveWalletAvailable !== false && walletPaymentMethods.length > 0;
68
- const effectiveSelectedMethod = showWalletMethod && selectedMethod === 'wallet'
69
- && !emailSessionChanged && isValidEmail(initialCustomerEmail) && rejectedEmail === null
70
- && resolvedCustomerEmail === initialCustomerEmail ? 'wallet' : 'card';
67
+ const walletEmailReady = !emailSessionChanged && isValidEmail(initialCustomerEmail)
68
+ && rejectedEmail === null && resolvedCustomerEmail === initialCustomerEmail;
69
+ const showWalletMethod = presentation !== 'inline' && walletEmailReady
70
+ && effectiveWalletAvailable !== false && walletPaymentMethods.length > 0;
71
+ const effectiveSelectedMethod = showWalletMethod && selectedMethod === 'wallet' ? 'wallet' : 'card';
71
72
  const expressCheckoutOptions = useMemo(() => {
72
73
  return {
73
74
  buttonHeight: 55,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/payments",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",