From f8e4b0b7fcfd5c7f66a5742a40f16c9a92496022 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 27 Dec 2023 19:28:37 -0800 Subject: [PATCH] fix: undefined uni --- components/hero/hero.tsx | 2 +- components/search/search.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/hero/hero.tsx b/components/hero/hero.tsx index 1c3ec0c..95cd26e 100644 --- a/components/hero/hero.tsx +++ b/components/hero/hero.tsx @@ -55,7 +55,7 @@ const Hero = () => { category: analyticsEnum.search.title, action: analyticsEnum.search.actions.SEARCH, label: university, - value: UNIVERSITY_GE.university.findIndex((item) => { + value: UNIVERSITY_GE[university].findIndex((item) => { return item.includes(ge); }), }); diff --git a/components/search/search.tsx b/components/search/search.tsx index 8b3ba60..f0089d4 100644 --- a/components/search/search.tsx +++ b/components/search/search.tsx @@ -176,7 +176,7 @@ const Search = () => { category: analyticsEnum.search.title, action: analyticsEnum.search.actions.SEARCH, label: university, - value: UNIVERSITY_GE.university.findIndex((item) => { + value: UNIVERSITY_GE[university].findIndex((item) => { return item.includes(ge); }), });