From 0b38bd17f0d87645a2b9879067fabbb5aa2f54b5 Mon Sep 17 00:00:00 2001 From: Nathan Smith Date: Fri, 30 Aug 2024 17:42:49 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20#142=20Trim=20oauth=20cli?= =?UTF-8?q?ent=20id=20of=20whitespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was resulting in 404 Closes: #142 --- src/settings/account.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings/account.ts b/src/settings/account.ts index 52e2c2d..5172da0 100644 --- a/src/settings/account.ts +++ b/src/settings/account.ts @@ -90,7 +90,7 @@ export class AccountSettings { text.setValue(this.newAccount!.clientId ?? ""); text.setPlaceholder("Client ID"); text.onChange((value) => { - this.newAccount!.clientId = value; + this.newAccount!.clientId = value.trim(); }); }); } @@ -120,7 +120,7 @@ export class AccountSettings { text.setPlaceholder("Personal Access Token / OAuth Token"); text.setValue(this.newAccount!.token); text.onChange((value) => { - this.newAccount!.token = value; + this.newAccount!.token = value.trim(); }); }); @@ -195,7 +195,7 @@ export class AccountSettings { text.setValue(account.clientId ?? ""); text.setPlaceholder("Client ID"); text.onChange((value) => { - account.clientId = value; + account.clientId = value.trim(); void this.saveCallback(); }); }); @@ -227,7 +227,7 @@ export class AccountSettings { text.setPlaceholder("Personal Access Token / OAuth Token"); text.setValue(account.token); text.onChange((value) => { - account.token = value; + account.token = value.trim(); void this.saveCallback(); }); });