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]));