Cleanup
This commit is contained in:
@@ -70,7 +70,7 @@ const Tracker: React.FC<TrackerProps> = ({ userId, userWeight, activeSession, ac
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
const exList = await getExercises(userId);
|
const exList = await getExercises(userId);
|
||||||
setExercises(exList.filter(e => !e.isArchived || (activePlan && activePlan.steps.some(s => s.exerciseId === e.id))));
|
setExercises(exList);
|
||||||
const planList = await getPlans(userId);
|
const planList = await getPlans(userId);
|
||||||
setPlans(planList);
|
setPlans(planList);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user