Browse Source

Fixed.

master
Stian Aune 5 years ago
parent
commit
263b69f1ac
  1. 2
      my-bois/src/components/Contexts.jsx

2
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;

Loading…
Cancel
Save