From 23c4ca779daf366ffcbd214d859bea0973a24a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hagjoon=28=EC=9D=B4=ED=95=99=EC=A4=80=29?= Date: Tue, 11 Oct 2022 17:19:49 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=ED=96=89=EA=B3=84=ED=9A=8D=EC=84=9C?= =?UTF-8?q?=20-=20=EB=B3=B8=EC=9D=B8=EC=9D=B4=20=EC=93=B4=20=EA=B8=80?= =?UTF-8?q?=EC=9D=B4=EB=A9=B4=20=EC=88=98=EC=A0=95=20=EA=B0=80=EB=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/basis/flight/plan/FlightPlanForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/basis/flight/plan/FlightPlanForm.js b/src/components/basis/flight/plan/FlightPlanForm.js index 700aece..bfd0359 100644 --- a/src/components/basis/flight/plan/FlightPlanForm.js +++ b/src/components/basis/flight/plan/FlightPlanForm.js @@ -46,7 +46,7 @@ const FlightPlanForm = ({ // const schema = yup.object().shape({}); useEffect(() => { - if (detail?.createUserId == user?.cstmrSno || !detail.createUserId) { + if (detail?.cstmrSno == user?.cstmrSno) { setTest(false); } else { setTest(true); @@ -639,7 +639,7 @@ const PilotForm = ({ const { detail } = useSelector(state => state.flightState); useEffect(() => { - if (detail?.createUserId == user?.cstmrSno || !detail.createUserId) { + if (detail?.cstmrSno == user?.cstmrSno) { setTest(false); } else { setTest(true); @@ -781,7 +781,7 @@ const ArcrftForm = ({ const { detail } = useSelector(state => state.flightState); useEffect(() => { - if (detail?.createUserId == user?.cstmrSno || !detail.createUserId) { + if (detail?.cstmrSno == user?.cstmrSno) { setTest(false); } else { setTest(true);