Skip to content

Commit 5c2c17d

Browse files
committed
Fix annual average calculation for food insecurity in country page
1 parent 6fcd7f8 commit 5c2c17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/domain/risk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export function getAverageIpcData(uniqueData: IpcData) {
228228
);
229229

230230
const monthlyValueList = Object.values(ipcRiskDataItem ?? {});
231-
const annual_average = avgSafe(monthlyValueList);
231+
const annual_average = sumSafe(monthlyValueList);
232232

233233
return {
234234
...ipcRiskDataItem,

0 commit comments

Comments
 (0)