fix: modify variable name

This commit is contained in:
yoosangwook 2024-11-20 16:45:44 +09:00
parent 478b82f817
commit be137225c3

View File

@ -7,6 +7,7 @@ import { isObjectNotEmpty } from '@/util/common-utils'
import { SessionContext } from '@/app/SessionProvider'
import { useMessage } from '@/hooks/useMessage'
import { useRouter } from 'next/navigation'
import { FloorPlanContext } from '@/app/floor-plan/FloorPlanProvider'
const reducer = (prevState, nextState) => {
return { ...prevState, ...nextState }
@ -46,7 +47,8 @@ export const useEstimateController = (planNo) => {
const { promiseGet, get, post, promisePost } = useAxios(globalLocaleState)
const [isLoading, setIsLoading] = useState(false)
const [state, setState] = useReducer(reducer, defaultEstimateData)
// const [state, setState] = useReducer(reducer, defaultEstimateData)
const { estimateContextState, setEstimateContextState } = useContext(FloorPlanContext)
const [newState, setNewState] = useState({})
useEffect(() => {