fix ownerAffiliations, try fix starting step after login

This commit is contained in:
martin-mfg
2025-11-21 14:48:13 +01:00
parent 88ba657065
commit b511f45e75
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ const GRAPHQL_REPOS_FIELD = `
const GRAPHQL_REPOS_QUERY = `
query userInfo($login: String!, $after: String, $ownerAffiliations: [RepositoryAffiliation]) {
user(login: $login, ownerAffiliations: $ownerAffiliations) {
user(login: $login) {
${GRAPHQL_REPOS_FIELD}
}
}
+5 -1
View File
@@ -34,7 +34,11 @@ const HomeScreen = () => {
// for all stages
const [stage, setStage] = useState(isAuthenticated ? 1 : 0);
console.log('isAuthenticated: ', isAuthenticated, 'stage: ', stage);
useEffect(() => {
if (isAuthenticated && stage === 0) {
setStage(1);
}
}, [isAuthenticated]);
// for stage one
const [selectedCard, setSelectedCard] = useState('stats');