Skip to content

Commit

Permalink
Merge pull request #849 from basedosdados/development
Browse files Browse the repository at this point in the history
register success redirect fix
  • Loading branch information
AldemirLucas authored May 20, 2024
2 parents 0626adc + 5b1e7dd commit 3c2bfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/pages/user/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3c2bfe8

Please sign in to comment.