Sasha commited on
Commit
e547018
·
1 Parent(s): 2b682ac

fix: race condition for stats loading when user is authorized

Browse files
Files changed (1) hide show
  1. client/src/App.jsx +1 -1
client/src/App.jsx CHANGED
@@ -200,7 +200,7 @@ export default function App() {
200
  if (selectedStreamId && serverStatus === 'online') {
201
  fetchAllStats(true);
202
  }
203
- }, [selectedStreamId, serverStatus]);
204
 
205
  // Manage polling intervals when selected stream changes or streams update
206
  useEffect(() => {
 
200
  if (selectedStreamId && serverStatus === 'online') {
201
  fetchAllStats(true);
202
  }
203
+ }, [selectedStreamId, serverStatus, auth.loggedIn, twitchConfigured]);
204
 
205
  // Manage polling intervals when selected stream changes or streams update
206
  useEffect(() => {