Skip to content

Commit 3fc47b4

Browse files
committed
[dashboard] When creating a new Integration, trim the clientId and clientSecret values (as GitHub likes to put spaces in there 🤦)
1 parent 19ff6e5 commit 3fc47b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dashboard/src/settings/Integrations.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,10 @@ export function GitIntegrationModal(props: ({
571571
}
572572

573573
const updateClientId = (value: string) => {
574-
setClientId(value);
574+
setClientId(value.trim());
575575
}
576576
const updateClientSecret = (value: string) => {
577-
setClientSecret(value);
577+
setClientSecret(value.trim());
578578
}
579579

580580
const validate = () => {

0 commit comments

Comments
 (0)