Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajnayak committed Jan 29, 2025
1 parent bcb9576 commit 8e4daa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,12 @@ document.addEventListener('DOMContentLoaded', () => {
}

try {
setLoading(true);
// First validate the username
const userData = await validateGitHubUsername(username);

// Only set loading state after username is validated
setLoading(true);

const orgs = await getUserOrganizations(username);
const formUrl = constructFormUrl(userData, orgs);
window.location.href = formUrl;
Expand Down

0 comments on commit 8e4daa4

Please sign in to comment.