|
@ -125,7 +125,7 @@ export const StatusContextProvider = ({children}) => { |
|
|
|
|
|
|
|
|
async function resume() { |
|
|
async function resume() { |
|
|
const activeWorkouts = await fetchActiveWorkouts(); |
|
|
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 count = activeAndConnected.length; |
|
|
const last = count > 0 ? activeAndConnected[count - 1] : null; |
|
|
const last = count > 0 ? activeAndConnected[count - 1] : null; |
|
|
|
|
|
|
|
|