Skip to content

Commit

Permalink
After changing the default shipping or billing address in the account…
Browse files Browse the repository at this point in the history
… section other address would not properly update
  • Loading branch information
paales committed Feb 15, 2024
1 parent 9876b13 commit 4d7594c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quick-vans-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-customer": patch
---

After changing the default shipping or billing address in the account section other address would not properly update
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function UpdateDefaultAddressForm(props: UpdateDefaultAddressFormProps) {
const form = useFormGqlMutation(
UpdateDefaultAddressDocument,
{ mode: 'onChange', defaultValues },
{ errorPolicy: 'all' },
{ errorPolicy: 'all', refetchQueries: ['AccountDashboardAddresses'] },
)

const { handleSubmit, control, error, reset, formState } = form
Expand Down

0 comments on commit 4d7594c

Please sign in to comment.