Skip to content

Commit

Permalink
infra: remove any type form index.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonidShv authored Jan 30, 2024
2 parents a566e27 + 9b32971 commit 4eb1aa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ function getChartData(
for (const key in dataSetsSeries) {
const rest = Object.entries(dataSetsSeries[key].observations)
.sort((a: any, b: any) => Number(a[0]) - Number(b[0]))
.map((item: any) => Math.round(item[1][0] * TONS_PER_GG_COEFFICIENT));
.sort((a, b) => Number(a[0]) - Number(b[0]))
.map((item) => Math.round(item[1][0] * TONS_PER_GG_COEFFICIENT));
datasets.push({
data: rest,
Expand Down Expand Up @@ -316,8 +316,8 @@ function getPieChartData(dataSetsSeries: IDataSetsSeries) {
for (const key in dataSetsSeries) {
const rest = Object.entries(dataSetsSeries[key].observations)
.sort((a: any, b: any) => a[0] - b[0])
.map((item: any) => Math.round(item[1][0] * TONS_PER_GG_COEFFICIENT));
.sort((a, b) => Number(a[0]) - Number(b[0]))
.map((item) => Math.round(item[1][0] * TONS_PER_GG_COEFFICIENT));
data.push(rest[0]);
backgroundColor.push(colors[index] || "#607274");
Expand Down

0 comments on commit 4eb1aa2

Please sign in to comment.