Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshugupta54 committed Jul 29, 2024
1 parent d3d1d35 commit f702414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const customStyles = {
backgroundColor: state.isFocused
? "rgba(255, 182, 193, 0.8)"
: state.isSelected
? "#b52326"
: "white",
? "#b52326"
: "white",
}),
menu: (provided) => ({
...provided,
Expand Down
3 changes: 2 additions & 1 deletion pages/api/scholarship-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default async function handler(req, res) {
const scholarships = JSON.parse(data);
// List of filtering criteria
const filters = [
(scholarship) => !status || scholarship.Status === status || status === "show_both",
(scholarship) =>
!status || scholarship.Status === status || status === "show_both",
(scholarship) => !grade || scholarship.grade.includes(grade.toString()),
(scholarship) =>
!stream || scholarship["Open for Stream"].includes(stream),
Expand Down

0 comments on commit f702414

Please sign in to comment.