Skip to content

Commit 24f0fe0

Browse files
authored
Merge pull request #106 from Stack-Knowledge/hotfix/solve
[Hotfix] Update field name
2 parents 92dcc2e + 2cafe6a commit 24f0fe0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/api/admin/src/hooks/user/useGetSolveDetail.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { userUrl, userQueryKeys, get } from 'api/common';
55
interface SolveDetailResponseType {
66
solveId: string;
77
title: string;
8-
solvation: string;
8+
solution: string;
99
}
1010

1111
import type { UseQueryOptions } from '@tanstack/react-query';

packages/api/client/src/hooks/solve/usePostSolve.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const usePostSolve = (missionId: string) =>
99
void,
1010
AxiosError,
1111
{
12-
solvation: string;
12+
solution: string;
1313
}
1414
>(solveQueryKeys.postSolve(missionId), (newSolve) =>
1515
post(solveUrl.solve(missionId), newSolve)

projects/admin/src/PageContainer/GradingPage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const GradingPage: React.FC<GradingPageProps> = ({ solveId }) => {
6868
</S.SectionContainer>
6969
</S.TopContentWrapper>
7070
<GradingContainer onClick={handleSubmit}>
71-
{data.solvation}
71+
{data.solution}
7272
</GradingContainer>
7373
</div>
7474
)}

projects/client/src/PageContainer/MissionDetailPage/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const MissionDetailPage: React.FC<MissionDetailProps> = ({ missionId }) => {
3535
const preventClose = (e: BeforeUnloadEvent) => {
3636
e.preventDefault();
3737
e.returnValue = '';
38-
mutate({ solvation: '새로고침하여 제출된 사용자입니다.' });
38+
mutate({ solution: '새로고침하여 제출된 사용자입니다.' });
3939
};
4040

4141
useEffect(() => {
@@ -60,7 +60,7 @@ const MissionDetailPage: React.FC<MissionDetailProps> = ({ missionId }) => {
6060

6161
const submitSolution = () => {
6262
mutate({
63-
solvation:
63+
solution:
6464
inputValue.length > 0 ? inputValue : '시간초과로 제출된 사용자입니다.',
6565
});
6666
};

0 commit comments

Comments
 (0)