🐛 fix: #142 Trim oauth client id of whitespace

Was resulting in 404

Closes: #142
This commit is contained in:
Nathan Smith 2024-08-30 17:42:49 -04:00
parent 7aa0c14e01
commit 0b38bd17f0

View file

@ -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();
});
});