Fix login (#844)

* Fix login

* Fix according to PR

* Fix tests

* Fix tests
This commit is contained in:
Charles Bochet
2023-07-22 19:43:28 -07:00
committed by GitHub
parent c4468d60f6
commit 4ac01f2931
10 changed files with 15 additions and 47 deletions

View File

@ -16,10 +16,7 @@ import { TextInput } from '@/ui/input/components/TextInput';
import { useSnackBar } from '@/ui/snack-bar/hooks/useSnackBar';
import { SubSectionTitle } from '@/ui/title/components/SubSectionTitle';
import { GET_CURRENT_USER } from '@/users/queries';
import {
useGetCurrentUserLazyQuery,
useUpdateWorkspaceMutation,
} from '~/generated/graphql';
import { useUpdateWorkspaceMutation } from '~/generated/graphql';
const StyledContentContainer = styled.div`
width: 100%;
@ -48,7 +45,6 @@ export function CreateWorkspace() {
const { enqueueSnackBar } = useSnackBar();
const [updateWorkspace] = useUpdateWorkspaceMutation();
useGetCurrentUserLazyQuery();
// Form
const {

View File

@ -21,7 +21,6 @@ export function Verify() {
navigate(AppPath.SignIn);
} else {
await verify(loginToken);
navigate('/');
}
}