@graphcommerce/magento-cart-shipping-address 3.0.18 → 3.0.19

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1470](https://github.com/graphcommerce-org/graphcommerce/pull/1470) [`aac7bb3ad`](https://github.com/graphcommerce-org/graphcommerce/commit/aac7bb3adc62b0646813ab6a3ca9c3eb216e9caf) Thanks [@paales](https://github.com/paales)! - Saving a new address didn’t work because it expects saveInAddressBook
8
+
3
9
  ## 3.0.18
4
10
 
5
11
  ### Patch Changes
@@ -18,7 +18,6 @@ import { i18n } from '@lingui/core'
18
18
  import { Trans } from '@lingui/react'
19
19
  import { TextField } from '@mui/material'
20
20
  import { AnimatePresence } from 'framer-motion'
21
- import React from 'react'
22
21
  import { isSameAddress } from '../../utils/isSameAddress'
23
22
  import { GetAddressesDocument } from './GetAddresses.gql'
24
23
  import { SetShippingAddressDocument } from './SetShippingAddress.gql'
@@ -52,7 +51,7 @@ export function ShippingAddressForm(props: ShippingAddressFormProps) {
52
51
 
53
52
  const form = useFormGqlMutationCart(Mutation, {
54
53
  defaultValues: ignoreCache
55
- ? {}
54
+ ? { saveInAddressBook: true }
56
55
  : {
57
56
  // todo(paales): change to something more sustainable
58
57
  firstname: currentAddress?.firstname ?? currentCustomer?.firstname ?? '',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-shipping-address",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.0.18",
5
+ "version": "3.0.19",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {