From 8add46c0975686ce0967c2c38514a31aad6ee8cb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 11 Feb 2025 20:14:14 +0000 Subject: check for destination --- routes/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/users.ts b/routes/users.ts index 4c34e375..c0d99b7d 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -261,7 +261,7 @@ export default { } user.haspin = !!user.pin; - user.destination = user.destination.trim(); + if (user.destination) user.destination = user.destination.trim(); await s(`user:${user.pubkey}`, user.id); await s( `user:${user.username.toLowerCase().replace(/\s/g, "")}`, -- cgit v1.2.3