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
+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');