Skip to content

Commit

Permalink
chore: part filter 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon committed Aug 17, 2024
1 parent b785abb commit 52cc56d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/views/ApplyPage/components/PartSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ const PartSection = ({
const { getValues } = useFormContext();

const partOptions = questionTypes?.sort((a, b) => a.id - b.id).map(({ typeKr }) => typeKr);
// 지원 연장 파트
const filteredPartOptions = partOptions?.filter((part) => part === '안드로이드');

const selectedPart: string = getValues('part');
const filteredQuestions = questions?.find((item) => item.part === selectedPart)?.questions;
const partQuestionsById = partQuestionsDraft?.reduce(
Expand All @@ -56,7 +53,7 @@ const PartSection = ({
label="지원파트"
name="part"
placeholder="지원하고 싶은 파트를 선택해주세요."
options={filteredPartOptions || []}
options={partOptions || []}
size="lg"
required
disabled={isReview}
Expand Down

0 comments on commit 52cc56d

Please sign in to comment.