fix: Showing the real mail address on email confirmation view (#445)

* fix: Showing the real mail address on email confirmation view

* chore: remove the unused hook
This commit is contained in:
Ahmed Bouhuolia
2024-05-15 14:03:58 +02:00
committed by GitHub
parent 370a8a4b91
commit e380c598d3
8 changed files with 164 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
// @ts-nocheck
import { useEffect } from 'react';
import { useMutation, useQueryClient } from 'react-query';
import { useQueryTenant, useRequestQuery } from '../useQueryRequest';
import { useRequestQuery } from '../useQueryRequest';
import useApiRequest from '../useRequest';
import { useSetFeatureDashboardMeta } from '../state/feature';
import t from './types';
@@ -143,7 +143,7 @@ export function useAuthenticatedAccount(props) {
select: (response) => response.data.data,
defaultData: {},
onSuccess: (data) => {
setEmailConfirmed(data.is_verified);
setEmailConfirmed(data.is_verified, data.email);
},
...props,
},