Skip to content

Commit

Permalink
fix: more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Krish120003 committed Oct 18, 2024
1 parent 550b553 commit b945467
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/data/applicationSelectData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const orientations: SelectChoice[] = [
"Prefer not to say",
].map((v) => ({ value: v, label: v }));

const represenation: SelectChoice[] = [
const representation: SelectChoice[] = [
{ value: "YES", label: "Yes" },
{ value: "NO", label: "No" },
{ value: "UNSURE", label: "Unsure" },
Expand All @@ -294,6 +294,6 @@ export {
heardFrom,
studyYears,
orientations,
represenation,
representation,
};
export type { workshopType, SelectChoice };
6 changes: 3 additions & 3 deletions src/pages/apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
SelectChoice,
workshopType,
orientations,
represenation,
representation,
} from "../data/applicationSelectData";
import { useEffect } from "react";

Expand Down Expand Up @@ -599,10 +599,10 @@ const ApplyForm = ({
control={control}
render={({ field: { onChange, value } }) => (
<CustomSelect
options={represenation}
options={representation}
isMulti={false}
onChange={(val: SelectChoice | null) => onChange(val?.value)}
value={represenation.find((val) => val.value === value)}
value={representation.find((val) => val.value === value)}
/>
)}
/>
Expand Down

0 comments on commit b945467

Please sign in to comment.