From e52e611333435a40ea3e5a21d33ad74413b36aa9 Mon Sep 17 00:00:00 2001 From: jsun969 Date: Sun, 8 Dec 2024 14:20:58 +1030 Subject: [PATCH] fix: async track action --- src/components/SearchForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchForm.tsx b/src/components/SearchForm.tsx index ca5a123..dc816fb 100644 --- a/src/components/SearchForm.tsx +++ b/src/components/SearchForm.tsx @@ -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,