Skip to content

Commit f6ab6bb

Browse files
committed
chore: update customer profile on edit information
1 parent 8126271 commit f6ab6bb

File tree

1 file changed

+2
-0
lines changed
  • src/app/[locale]/(main)/(container)/profile/information

1 file changed

+2
-0
lines changed

src/app/[locale]/(main)/(container)/profile/information/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import ButtonWithLoading from '@/components/common/ButtonWithLoading';
55
import { authClient } from '@/graphql/clients/authClient';
66
import {
77
GET_CUSTOMER_BILLING,
8+
GET_CUSTOMER_PROFILE,
89
UPDATE_CUSTOMER_MUTATION,
910
} from '@/graphql/queries/customer';
1011
import { GET_COUNTRY_STATES } from '@/graphql/queries/general';
@@ -91,6 +92,7 @@ const Page = () => {
9192
},
9293
});
9394
if (!errors?.length) {
95+
authClient.refetchQueries({ include: [GET_CUSTOMER_PROFILE] });
9496
toast.success(t('messages.defaultSuccess'));
9597
}
9698
};

0 commit comments

Comments
 (0)