From 8e0ae86214c03b4d8cbb3f66629f31156772f718 Mon Sep 17 00:00:00 2001 From: Cam Otts Date: Wed, 24 May 2023 09:02:12 -0500 Subject: [PATCH] check for undefined rather than null --- ui/src/register/SetPasswordForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)