diff --git a/42manito/src/components/Reservation/NextProgressButton.tsx b/42manito/src/components/Reservation/NextProgressButton.tsx index e484d6c1..a9bd171f 100644 --- a/42manito/src/components/Reservation/NextProgressButton.tsx +++ b/42manito/src/components/Reservation/NextProgressButton.tsx @@ -31,18 +31,12 @@ export default function NextProgressButton({ usePatchReservationMenteeCheckMutation(); const dispatch = useDispatch(); - const handlePatchReservation = async ( - data: any, - patchFunc: any, - msg?: string, - errorMsg?: string - ) => { + const handlePatchReservation = async (data: any, patchFunc: any) => { try { const res = await patchFunc(data).unwrap(); dispatch(setSelectedReservation(res)); - msg && alert(msg); } catch (e: BaseQueryError) { - alert(errorMsg ? errorMsg : "Error"); + alert("Error"); } }; @@ -53,12 +47,8 @@ export default function NextProgressButton({