From 9f61f1d5d654ccf3af17550cf9a731240828e6ec Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sat, 15 Oct 2022 10:48:09 +0200 Subject: [PATCH] bugfixes --- src/route-widgets/root/EmailForm/EmailForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/route-widgets/root/EmailForm/EmailForm.tsx b/src/route-widgets/root/EmailForm/EmailForm.tsx index da0e815..f89fbf9 100644 --- a/src/route-widgets/root/EmailForm/EmailForm.tsx +++ b/src/route-widgets/root/EmailForm/EmailForm.tsx @@ -39,7 +39,9 @@ export default function EmailForm({ onSubmit: async (values, {setErrors}) => { // Check is email disposable try { - const isDisposable = await checkIsDomainDisposable(values.email) + const isDisposable = await checkIsDomainDisposable( + values.email.split("@")[1], + ) if (isDisposable) { setErrors({