mirror of
https://github.com/openziti/zrok.git
synced 2025-03-14 23:48:22 +01:00
check for undefined rather than null
This commit is contained in:
parent
434972a9f1
commit
8e0ae86214
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user