From 5b1e7dde6fc95865dab3f9e03ae73317590f819d Mon Sep 17 00:00:00 2001 From: aldemirlucas Date: Mon, 20 May 2024 10:45:19 -0300 Subject: [PATCH] register success redirect fix --- next/pages/user/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next/pages/user/register.js b/next/pages/user/register.js index c9c458d2..d34329ad 100644 --- a/next/pages/user/register.js +++ b/next/pages/user/register.js @@ -137,7 +137,7 @@ export default function Register() { } setErrors(arrayErrors) - if(result?.errors?.length === 0) { + if(result?.success === true) { sessionStorage.setItem('registration_email_bd', `${email}`) triggerGAEvent("user_register", "register_success") window.open("/user/check-email", "_self")