Skip to content

Commit

Permalink
Merge pull request #52 from marvillage/issue-49
Browse files Browse the repository at this point in the history
fix: added 'any'
  • Loading branch information
suryabulusu authored Feb 5, 2025
2 parents d1ec67d + ce4c193 commit 33e33d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pages/api/scholarship-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default async function handler(req, res) {
(scholarship) => {
const result =
!gender ||
gender === "Any" || // Added functionality for "Any"
scholarship.Gender === "Both" ||
flexMatch(scholarship.Gender, gender) ||
scholarship.Gender == null;
Expand Down
1 change: 1 addition & 0 deletions scholarshipConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const scholarshipConfig = {
name: "gender",
label: "Select Gender",
options: [
{ value: "Any", label: "Any" }, // New option added
{ value: "Others", label: "Others" },
{ value: "Both", label: "Male Only" }, // This is for handling the case when the scholarship is open for both.
{ value: "Female", label: "Female Only" },
Expand Down

0 comments on commit 33e33d3

Please sign in to comment.