diff --git a/src/components/estimate/popup/EstimateCopyPop.jsx b/src/components/estimate/popup/EstimateCopyPop.jsx index 39ca5a28..04414b9f 100644 --- a/src/components/estimate/popup/EstimateCopyPop.jsx +++ b/src/components/estimate/popup/EstimateCopyPop.jsx @@ -11,7 +11,7 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) { const { getMessage } = useMessage() const { get } = useAxios() - const { handleEstimateCopy, state } = useEstimateController(planNo) + const { handleEstimateCopy, estimateContextState } = useEstimateController(planNo) const { session } = useContext(SessionContext) @@ -105,10 +105,10 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) { }, [planNo]) useEffect(() => { - if (state?.charger) { - setCopyReceiveUser(state.charger) + if (estimateContextState?.charger) { + setCopyReceiveUser(estimateContextState.charger) } - }, [state.charger]) + }, [estimateContextState?.charger]) //T01 1차점 자동완성 인풋때 목록 변환 const onInputChange = (key) => { @@ -282,7 +282,7 @@ export default function EstimateCopyPop({ planNo, setEstimateCopyPopupOpen }) { type="text" className="input-light" required - defaultValue={state?.charger} + defaultValue={estimateContextState?.charger} onChange={(e) => { setCopyReceiveUser(e.target.value) }}