diff --git a/src/views/ResultPage/index.tsx b/src/views/ResultPage/index.tsx
index 9b45a03d..00a1ea8b 100644
--- a/src/views/ResultPage/index.tsx
+++ b/src/views/ResultPage/index.tsx
@@ -4,12 +4,15 @@ import useDate from '@hooks/useDate';
import { ThemeContext } from '@store/themeContext';
import NoMore from 'views/ErrorPage/components/NoMore';
import BigLoading from 'views/loadings/BigLoding';
+import useGetMyInfo from 'views/SignedInPage/hooks/useGetMyInfo';
import FinalResult from './components/FinalResult';
import ScreeningResult from './components/ScreeningResult';
const ResultPage = () => {
const { handleChangeMode } = useContext(ThemeContext);
+ const { myInfoData, myInfoIsLoading } = useGetMyInfo();
+ const { submit, applicationPass } = myInfoData?.data || {};
const { NoMoreRecruit, NoMoreScreeningResult, NoMoreFinalResult, isLoading, isMakers } = useDate();
@@ -21,14 +24,15 @@ const ResultPage = () => {
};
}, [handleChangeMode]);
- if (isLoading) return ;
- if (NoMoreRecruit || (NoMoreScreeningResult && NoMoreFinalResult))
+ if (isLoading || myInfoIsLoading) return ;
+ if (!submit || NoMoreRecruit || (NoMoreScreeningResult && NoMoreFinalResult))
return ;
return (
<>
{!NoMoreScreeningResult && }
- {!NoMoreFinalResult && }
+ {!NoMoreFinalResult &&
+ (applicationPass ? : )}
>
);
};