Skip to content

Commit d4a2db8

Browse files
Shulammite-Asoroboquat
authored andcommittedFeb 28, 2022
change hostname and remove http block
1 parent cfa6091 commit d4a2db8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎components/dashboard/src/settings/Integrations.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -558,16 +558,14 @@ export function GitIntegrationModal(props: ({
558558
const updateHostValue = (host: string) => {
559559
if (mode === "new") {
560560

561-
let verifiedHost = host;
561+
let newHostValue = host;
562562

563563
if (host.startsWith("https://")) {
564-
verifiedHost = host.replace("https://","");
565-
} else if (host.startsWith("http://")) {
566-
verifiedHost = host.replace("http://","");
564+
newHostValue = host.replace("https://","");
567565
}
568566

569-
setHost(verifiedHost);
570-
setRedirectURL(callbackUrl(verifiedHost));
567+
setHost(newHostValue);
568+
setRedirectURL(callbackUrl(newHostValue));
571569
setErrorMessage(undefined);
572570
}
573571
}

0 commit comments

Comments
 (0)
Please sign in to comment.