diff options
| -rw-r--r-- | routes/users.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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, "")}`, |
