Skip to content

Commit efe9604

Browse files
committed
cleanup
1 parent 665b7ab commit efe9604

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/dashboard/src/projects/new-project/NewProjectRepoSelection.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export const NewProjectRepoSelection: FC<Props> = ({ selectedProvider, onProject
5555

5656
// Memoized & derived values
5757
const noReposAvailable = !!(reposInAccounts?.length === 0 || areGitHubWebhooksUnauthorized);
58-
// TODO: check type instead of host?
5958
const isGitHub = selectedProvider?.host === "github.com";
6059
const isBitbucketServer = selectedProvider?.authProviderType === "BitbucketServer";
6160

@@ -127,9 +126,9 @@ export const NewProjectRepoSelection: FC<Props> = ({ selectedProvider, onProject
127126
[onCreateProject],
128127
);
129128

130-
// Adjusts selectedAccount when repos change if we don't have a selected account
129+
// Adjusts selectedAccount when repos change if we don't already have a selected account
131130
useEffect(() => {
132-
// TODO: find a better solution here
131+
// TODO: Once all providers filter on the server we can remove this account selection logic
133132
if (isBitbucketServer) {
134133
return;
135134
}

0 commit comments

Comments
 (0)