about summary refs log tree commit diff
path: root/src/state/models/ui/create-account.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-09-22 17:04:58 -0700
committerGitHub <noreply@github.com>2023-09-22 17:04:58 -0700
commit41b53ca37b7eec328e72aabe6bb99b2c6cc367b7 (patch)
treeac11dfff8903fd6a4ffb3dfb58393e9b8b8bb09c /src/state/models/ui/create-account.ts
parentb7697f08d65a0095bfc06578d689b8b8f61bef69 (diff)
downloadvoidsky-41b53ca37b7eec328e72aabe6bb99b2c6cc367b7.tar.zst
Trim whitespace on invite code (#1517)
Diffstat (limited to 'src/state/models/ui/create-account.ts')
-rw-r--r--src/state/models/ui/create-account.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/models/ui/create-account.ts b/src/state/models/ui/create-account.ts
index d595b200b..9f11a9b31 100644
--- a/src/state/models/ui/create-account.ts
+++ b/src/state/models/ui/create-account.ts
@@ -116,7 +116,7 @@ export class CreateAccountModel {
         email: this.email,
         handle: createFullHandle(this.handle, this.userDomain),
         password: this.password,
-        inviteCode: this.inviteCode,
+        inviteCode: this.inviteCode.trim(),
       })
       /* dont await */ this.rootStore.preferences.setBirthDate(this.birthDate)
       track('Create Account')