Skip to content

Commit

Permalink
fix: async track action
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Dec 8, 2024
1 parent 6b02edd commit e52e611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const SearchForm = () => {
const course = courses?.find((c) => c.id === selectedCourseId);
if (!course) return;
const name = `${course.name.subject} ${course.name.code}`;
umami.track('Add course', { subject: course.name.subject, name });
await umami.track('Add course', { subject: course.name.subject, name });
enrolledCourses.addCourse({
name,
id: course.id,
Expand Down

0 comments on commit e52e611

Please sign in to comment.