diff --git a/my-bois/src/components/Contexts.jsx b/my-bois/src/components/Contexts.jsx index 9e5bd25..98a43ba 100644 --- a/my-bois/src/components/Contexts.jsx +++ b/my-bois/src/components/Contexts.jsx @@ -125,7 +125,7 @@ export const StatusContextProvider = ({children}) => { async function resume() { const activeWorkouts = await fetchActiveWorkouts(); - const activeAndConnected = activeWorkouts.filter(w => w.status !== "disconnected"); + const activeAndConnected = activeWorkouts.filter(w => w.state !== "disconnected"); const count = activeAndConnected.length; const last = count > 0 ? activeAndConnected[count - 1] : null;