From 6c693eef11916e615ad5c8adaf4bdfe58f23ee22 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Fri, 3 Mar 2023 20:21:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/components/login.tsx | 6 ++---- packages/lib/mail/sendSigningDoneMail.ts | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/web/components/login.tsx b/apps/web/components/login.tsx index 2d5856eee..93266aa50 100644 --- a/apps/web/components/login.tsx +++ b/apps/web/components/login.tsx @@ -56,16 +56,14 @@ export default function Login() { } ); if (!res) { - setErrorMessage("error"); + setErrorMessage("Error"); toast.dismiss(); toast.error("Something went wrong."); } - // we're logged in! let's do a hard refresh to the desired url else if (!res.error) { + // we're logged in, let's do a hard refresh to the original url router.push(callbackUrl); - // toast.error("error"); } - // fallback if error not found else { toast.dismiss(); if (res.status == 401) { diff --git a/packages/lib/mail/sendSigningDoneMail.ts b/packages/lib/mail/sendSigningDoneMail.ts index a0a52617f..85708e88f 100644 --- a/packages/lib/mail/sendSigningDoneMail.ts +++ b/packages/lib/mail/sendSigningDoneMail.ts @@ -11,7 +11,6 @@ export const sendSigningDoneMail = async ( await sendMail( user.email, `Completed: "${document.title}"`, - // base template with footer and box vs content template for eact type signingCompleteTemplate(`All recipients have signed "${document.title}".`), [ {