From 58c8f118d3897c27f911d63e6052a29c37d4801e Mon Sep 17 00:00:00 2001 From: ljpark Date: Fri, 9 Jan 2026 16:34:52 +0900 Subject: [PATCH] =?UTF-8?q?fo:=20dashboard=20=EA=B0=95=EC=9A=B0=EC=9D=BC?= =?UTF-8?q?=EC=9A=B4=EC=98=81=ED=98=84=ED=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/fo/app/components/common/CalcRainEffect.tsx | 6 +++--- apps/fo/app/store/dashboard/index.tsx | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/fo/app/components/common/CalcRainEffect.tsx b/apps/fo/app/components/common/CalcRainEffect.tsx index 0388c5951..a85f35443 100644 --- a/apps/fo/app/components/common/CalcRainEffect.tsx +++ b/apps/fo/app/components/common/CalcRainEffect.tsx @@ -10,9 +10,9 @@ */ export default function CalcRainEffect(data : any, weather='ALL') { - let rtnDataAll : any = []; - let rtnDataSunny : any = []; - let rtnDataRain : any = []; + const rtnDataAll : any = []; + const rtnDataSunny : any = []; + const rtnDataRain : any = []; let rtnData : any = []; let rainEffectStd = 0; data.forEach(item => { diff --git a/apps/fo/app/store/dashboard/index.tsx b/apps/fo/app/store/dashboard/index.tsx index 8216dcd26..572912a53 100644 --- a/apps/fo/app/store/dashboard/index.tsx +++ b/apps/fo/app/store/dashboard/index.tsx @@ -2289,13 +2289,13 @@ export const dashBoardReducer = ( return count > 0 ? Number((value / count)) : 0; }; - // 데이터 있는 항목만 계산 - let dataIsCount = 0; - for (let idx = 0; idx < inflAmnt.length; idx++) { - if (Number(inflAmnt[idx]) > 0) { - dataIsCount++; - } - } + // // 데이터 있는 항목만 계산 + // let dataIsCount = 0; + // for (let idx = 0; idx < inflAmnt.length; idx++) { + // if (Number(inflAmnt[idx]) > 0) { + // dataIsCount++; + // } + // } for (let idx = 1; idx < inflAmnt.length; idx++) { inflAmnt[idx] = calculateAverage(Number(inflAmnt[idx]), Number(inflAmtCnt[idx]));