We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfa6091 commit d4a2db8Copy full SHA for d4a2db8
components/dashboard/src/settings/Integrations.tsx
@@ -558,16 +558,14 @@ export function GitIntegrationModal(props: ({
558
const updateHostValue = (host: string) => {
559
if (mode === "new") {
560
561
- let verifiedHost = host;
+ let newHostValue = host;
562
563
if (host.startsWith("https://")) {
564
- verifiedHost = host.replace("https://","");
565
- } else if (host.startsWith("http://")) {
566
- verifiedHost = host.replace("http://","");
+ newHostValue = host.replace("https://","");
567
}
568
569
- setHost(verifiedHost);
570
- setRedirectURL(callbackUrl(verifiedHost));
+ setHost(newHostValue);
+ setRedirectURL(callbackUrl(newHostValue));
571
setErrorMessage(undefined);
572
573
0 commit comments