Skip to content

Commit

Permalink
refactor: swap ternary condition order
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Apr 5, 2024
1 parent aa5483a commit eaa72ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const Search = () => {
const fetchData = async () => {
try {
const universityParam = university;
const geParam = !ge.includes("GE") ? ge : ge.split(" ")[1];
const geParam = ge.includes("GE") ? ge.split(" ")[1] : ge;
const courses = await queryDatabase(universityParam, geParam);

setCourses(courses);
Expand Down

0 comments on commit eaa72ff

Please sign in to comment.