diff --git a/frontend/src/hooks/useApplication.tsx b/frontend/src/hooks/useApplication.tsx index d54c6c1c..b95c7857 100644 --- a/frontend/src/hooks/useApplication.tsx +++ b/frontend/src/hooks/useApplication.tsx @@ -17,13 +17,16 @@ import { applicationDataAtom, applicationIndexAtom, } from "../stores/application"; -import { END_DATE } from "../constants/application/28"; export const useApplication = () => { // TODO: 질문의 이름마다 side effect가 있으니 주의하면 좋을 것 const setApplicationIndex = useSetAtom(applicationIndexAtom); const applicationData = useAtomValue(applicationDataAtom); + const { + END_DATE, + } = require(`@/src/constants/application/${CURRENT_GENERATION}.ts`); + const canApplicationNext = (applicationNames: Array) => { const nonValidatedQuestion = applicationNames .map((name) => {