Skip to content

Commit

Permalink
Add tracking evnet to count duplicated courses error
Browse files Browse the repository at this point in the history
  • Loading branch information
HosokawaR committed Apr 2, 2023
1 parent 45fb9e3 commit 75b20cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/pages/add/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ const addCourses = async (warning = true) => {
.map(({ code, name }) => `【${code}】${name}`)
.join("\n");
displayToast(text, { type: "danger" });
duplicateCourses.value = await (
gtm?.trackEvent({ event: "duplicated-courses-error" });
return;
}
Expand Down

0 comments on commit 75b20cb

Please sign in to comment.