MCPcopy Create free account
hub / github.com/code100x/daily-code / asyncUpdate

Function asyncUpdate

apps/web/components/mcq/EditMCQ.tsx:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34 function handleUpdate() {
35 const asyncUpdate = async () => {
36 setIsUpdating(true);
37 await updateMCQ(mcq.id, {
38 id: mcq.id,
39 question,
40 options,
41 correctOption,
42 problemId: mcq.problemId,
43 });
44 setIsUpdating(false);
45 };
46 asyncUpdate();
47 }
48

Callers 1

handleUpdateFunction · 0.85

Calls 1

updateMCQFunction · 0.90

Tested by

no test coverage detected