fix ownerAffiliations, try fix starting step after login
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user