We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8126271 commit f6ab6bbCopy full SHA for f6ab6bb
src/app/[locale]/(main)/(container)/profile/information/page.tsx
@@ -5,6 +5,7 @@ import ButtonWithLoading from '@/components/common/ButtonWithLoading';
5
import { authClient } from '@/graphql/clients/authClient';
6
import {
7
GET_CUSTOMER_BILLING,
8
+ GET_CUSTOMER_PROFILE,
9
UPDATE_CUSTOMER_MUTATION,
10
} from '@/graphql/queries/customer';
11
import { GET_COUNTRY_STATES } from '@/graphql/queries/general';
@@ -91,6 +92,7 @@ const Page = () => {
91
92
},
93
});
94
if (!errors?.length) {
95
+ authClient.refetchQueries({ include: [GET_CUSTOMER_PROFILE] });
96
toast.success(t('messages.defaultSuccess'));
97
}
98
};
0 commit comments