MCPcopy Create free account
hub / github.com/ImGoodBai/MapGoGoGo / refreshChallenges

Function refreshChallenges

frontend/src/App.tsx:197–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 }, []);
196
197 async function refreshChallenges() {
198 const list = await api.listChallenges();
199 setChallenges(list.challenges);
200 if (!activeChallengeId && list.challenges[0]) {
201 setActiveChallengeId(list.challenges[0].id);
202 }
203 }
204
205 const activeChallenge = challenges.find((item) => item.id === activeChallengeId);
206 const challengePage = view === "challenge";

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected