summaryrefslogtreecommitdiffstats
path: root/server/api/registration.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/registration.js')
-rw-r--r--server/api/registration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index 09513c6..a556bbe 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -286,7 +286,7 @@ noAuthRouter.postAsync('/clients', async (req, res) => {
else if (!ipxe && ipCheck.leased && !ipCheck.error) return res.send({ client: client, ipList: ipCheck.nextIps })
// Set the hostname as clientname if it exists and is not a leased ip.
- if (!ipCheck.leased && ipCheck.name !== '') {
+ if (!ipCheck.leased && ipCheck.name) {
if (ipCheck.name) client.name = ipCheck.name
if (ipCheck.id) dhcp.ref = ipCheck.id
} else {