diff --git a/features/record/components/organisms/form.tsx b/features/record/components/organisms/form.tsx index b5686644..83e3ddd3 100644 --- a/features/record/components/organisms/form.tsx +++ b/features/record/components/organisms/form.tsx @@ -140,11 +140,12 @@ export function Form() { //Todo: 기록 에러 발생 시 처리 const onSubmit: SubmitHandler = async (data) => { + if (isLoading) return; //기록 수정 모드일 때 // eslint-disable-next-line @typescript-eslint/no-unused-vars const { poolName, laneMeter, totalDistance, ...restData } = data; const submitData = modifySubmitData(restData); - if (isLoading) return; + handlers.onChangeIsLoading(true); if (isEditMode) { //이미지가 수정 되었을 때