Skip to content

Commit 4d94a05

Browse files
committed
chore: nit
1 parent 6d2aea8 commit 4d94a05

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/web/src/pages/NewTraining.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,13 @@ export function NewTraining({ params }: { params: { exam: string } }) {
144144
toast.success(
145145
"You answered all questions. You can start a new training if you want.",
146146
);
147+
return;
147148
}
148-
logEvent("start_training", { slug });
149+
150+
logEvent("start_training", {
151+
slug,
152+
questions_count: questions.length,
153+
});
149154
setLocation(`/${slug}/training`, { replace: true });
150155
}}
151156
>

0 commit comments

Comments
 (0)