diff --git a/src/apis/contract/hooks/usePostEmployeeSign.tsx b/src/apis/contract/hooks/usePostEmployeeSign.tsx index b1fc0f5..0648593 100644 --- a/src/apis/contract/hooks/usePostEmployeeSign.tsx +++ b/src/apis/contract/hooks/usePostEmployeeSign.tsx @@ -13,7 +13,7 @@ export const postSignEmployeeContract = async (req: SignEmployeeContractRequestD return response.data; }; -export const useFetchPostContract = () => +export const usePostSignEmployeeContract = () => useMutation({ mutationFn: postSignEmployeeContract, }); diff --git a/src/pages/contract/EmployeeContract/EmployeeContract.tsx b/src/pages/contract/EmployeeContract/EmployeeContract.tsx index cca6349..b35fcab 100644 --- a/src/pages/contract/EmployeeContract/EmployeeContract.tsx +++ b/src/pages/contract/EmployeeContract/EmployeeContract.tsx @@ -1,12 +1,12 @@ import { useState } from 'react'; import { useGetMyContract } from '@/apis/contract/hooks/useGetMyContract'; -import { useFetchPostContract } from '@/apis/contract/hooks/usePostContract'; import { Button, Flex, Typo } from '@/components/common'; import Layout from '@/features/layout'; import ROUTE_PATH from '@/routes/path'; import styled from '@emotion/styled'; import { useTranslation } from 'react-i18next'; import { useNavigate, useParams } from 'react-router-dom'; +import { usePostSignEmployeeContract } from '@/apis/contract/hooks/usePostEmployeeSign'; export type ContractResponseData = { salary: string; @@ -23,7 +23,7 @@ export default function EmployeeContract() { const { applyId } = useParams(); const applicationId = Number(applyId); const { data: contract } = useGetMyContract(applicationId); - const mutation = useFetchPostContract(); + const mutation = usePostSignEmployeeContract(); const navigate = useNavigate(); const contractData: ContractResponseData = contract || {}; diff --git a/src/pages/registerCompany/RegisterCompany.tsx b/src/pages/registerCompany/RegisterCompany.tsx index 99fb3b1..fc3d392 100644 --- a/src/pages/registerCompany/RegisterCompany.tsx +++ b/src/pages/registerCompany/RegisterCompany.tsx @@ -90,8 +90,6 @@ export default function RegisterCompany() { if (file) { formData.append('logoImage', file); - } else { - formData.append('logoImage', ''); } mutation.mutate(formData, {