Skip to content

Commit

Permalink
Do not block inputting sourcegraph.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiccooney committed Jan 16, 2025
1 parent 0726d4a commit 680680a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vscode/webviews/AuthPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ const ClientSignInForm: React.FC<ClientSignInFormProps> = memo(
isSubmitting: false,
showAuthError: false,
formData: {
endpoint: authStatus?.endpoint ?? '',
endpoint: authStatus && !isDotCom(authStatus) ? authStatus.endpoint : '',
accessToken: '',
},
})
Expand Down Expand Up @@ -361,9 +361,7 @@ const ClientSignInForm: React.FC<ClientSignInFormProps> = memo(
type="url"
name="endpoint"
placeholder="Example: https://instance.sourcegraph.com"
value={
isDotCom(formState.formData.endpoint) ? '' : formState.formData.endpoint
}
value={formState.formData.endpoint}
className="tw-w-full tw-my-2 !tw-p-4"
required
onChange={handleInputChange}
Expand Down

0 comments on commit 680680a

Please sign in to comment.