Skip to content

Commit

Permalink
fix: broken util import
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Jul 4, 2024
1 parent 0993db1 commit a0f48f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Input } from '@/components/ui/input';
import { useLoginMutation } from '@/graphql/mutations/__generated__/login.generated';
import { argon2Hash } from '@/utils/crypto';
import { handleApolloError } from '@/utils/error';
import { MIN_PASSWORD_LENGTH } from '@/utils/password';
import { ROUTES } from '@/utils/routes';

import {
Expand All @@ -36,9 +35,7 @@ const FormSchema = z.object({
email: z.string().email().min(5, {
message: 'Invalid email.',
}),
password: z.string().min(MIN_PASSWORD_LENGTH, {
message: `The password is at least ${MIN_PASSWORD_LENGTH} characters.`,
}),
password: z.string(),
});

export function LoginForm() {
Expand Down
5 changes: 1 addition & 4 deletions src/components/button/VaultButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { useUserQuery } from '@/graphql/queries/__generated__/user.generated';
import { cn } from '@/lib/utils';
import { useKeyStore } from '@/stores/keys';
import { handleApolloError } from '@/utils/error';
import { MIN_PASSWORD_LENGTH } from '@/utils/password';
import { WorkerMessage, WorkerResponse } from '@/workers/account/types';

import { Button } from '../ui/button';
Expand All @@ -37,9 +36,7 @@ import { Input } from '../ui/input';
import { useToast } from '../ui/use-toast';

const formSchema = z.object({
password: z.string().min(MIN_PASSWORD_LENGTH, {
message: `Password needs to be at least ${MIN_PASSWORD_LENGTH} characters.`,
}),
password: z.string(),
});

const UnlockDialogContent: FC<{ callback: () => void }> = ({ callback }) => {
Expand Down

0 comments on commit a0f48f5

Please sign in to comment.