diff --git a/ui/src/register/SetPasswordForm.js b/ui/src/register/SetPasswordForm.js index 63d427db..ef979ae0 100644 --- a/ui/src/register/SetPasswordForm.js +++ b/ui/src/register/SetPasswordForm.js @@ -22,7 +22,7 @@ const SetPasswordForm = (props) => { useEffect(() => { metadata.configuration().then(resp => { if(!resp.error) { - if (resp.data.touLink !== null && resp.data.touLink.trim() !== "") { + if (resp.data.touLink !== undefined && resp.data.touLink.trim() !== "") { setTou(resp.data.touLink) } setPasswordLength(resp.data.passwordRequirements.length)