chore: refactor

This commit is contained in:
Catalin Pit
2024-01-26 13:27:36 +02:00
parent e2fa01509d
commit b2cca9afb6
6 changed files with 13 additions and 10 deletions

View File

@ -18,7 +18,7 @@ export default function UnverifiedAccount() {
const searchParams = useSearchParams();
const { toast } = useToast();
const encryptedEmail = searchParams?.get('t') ?? ''; // TODO: choose a better name instead of t
const encryptedEmail = searchParams?.get('token') ?? '';
const { mutateAsync: sendConfirmationEmail } = trpc.profile.sendConfirmationEmail.useMutation();
@ -26,7 +26,7 @@ export default function UnverifiedAccount() {
try {
setIsButtonDisabled(true);
await sendConfirmationEmail({ email: encryptedEmail });
await sendConfirmationEmail({ encryptedEmail });
toast({
title: 'Success',