diff --git a/src/pages/cancel/Cancel.tsx b/src/pages/cancel/Cancel.tsx index 7801dd14..f5707daa 100644 --- a/src/pages/cancel/Cancel.tsx +++ b/src/pages/cancel/Cancel.tsx @@ -22,11 +22,7 @@ const Cancel = () => { const { setHeader } = useHeader(); const { openAlert } = useModal(); const { state } = useLocation(); - const { confirmCancelAction } = useCancelBooking( - state?.bookerName, - state?.number, - state?.password - ); + const { confirmCancelAction } = useCancelBooking(state?.name, state?.phone, state?.password); const navigate = useNavigate(); const [isDeposit, setIsDeposit] = useState(null); const [bankOpen, setBankOpen] = useState(false); diff --git a/src/pages/lookup/Lookup.tsx b/src/pages/lookup/Lookup.tsx index 0e17cdd9..9d5afad4 100644 --- a/src/pages/lookup/Lookup.tsx +++ b/src/pages/lookup/Lookup.tsx @@ -68,8 +68,8 @@ const Lookup = () => { }; useEffect(() => { - if (state?.name && state?.phone && state?.password && !cachedData && !isFetching) { - // 비회원 데이터가 캐시에 없을 경우 새로 가져옴 + if (state?.name && state?.phone && state?.password && !isFetching) { + // 비회원 데이터 새로 가져옴 fetchBookingList(state).finally(() => { setIsFetching(false); setCachedData(getCachedBookingList(state.name, state.phone, state.password));