rogasper commited on
Commit
7faa899
·
1 Parent(s): f133948

chore(release): v0.1.0

Browse files
apps/web/src/components/test/AttemptTestView.tsx CHANGED
@@ -181,7 +181,7 @@ export function AttemptTestView({
181
  const v = answers[q.id];
182
  if (v) void onAnswerChange(q.id, sectionResultId, v);
183
  }
184
- // eslint-disable-next-line react-hooks/exhaustive-deps -- flush once per section when ids align; `answers` read from committing render
185
  }, [sectionResultId, currentSectionIdx, isFinished, currentSection?.questions?.length, onAnswerChange]);
186
 
187
  if (!currentSection) {
 
181
  const v = answers[q.id];
182
  if (v) void onAnswerChange(q.id, sectionResultId, v);
183
  }
184
+ /* flush once per section when ids align; `answers` read from committing render */
185
  }, [sectionResultId, currentSectionIdx, isFinished, currentSection?.questions?.length, onAnswerChange]);
186
 
187
  if (!currentSection) {
apps/web/src/hooks/use-package-builder.ts CHANGED
@@ -69,7 +69,7 @@ export function usePackageBuilder() {
69
  }) => {
70
  const available = params.allQuestions.filter((q) => q.examTypeId === params.examTypeId);
71
 
72
- let picked = available;
73
  if (params.sortOrder === "random") {
74
  picked = [...available].sort(() => Math.random() - 0.5);
75
  } else {
 
69
  }) => {
70
  const available = params.allQuestions.filter((q) => q.examTypeId === params.examTypeId);
71
 
72
+ let picked: typeof available;
73
  if (params.sortOrder === "random") {
74
  picked = [...available].sort(() => Math.random() - 0.5);
75
  } else {
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "labas",
3
- "version": "0.0.1",
4
  "private": true,
5
  "workspaces": {
6
  "packages": [
 
1
  {
2
  "name": "labas",
3
+ "version": "0.1.0",
4
  "private": true,
5
  "workspaces": {
6
  "packages": [