wilitp преди 4 години
родител
ревизия
3b0b009818
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      app/src/components/data/DegreeDay/index.tsx
  2. 1 1
      app/src/components/data/Precipitation/index.tsx

+ 1 - 1
app/src/components/data/DegreeDay/index.tsx

@@ -12,7 +12,7 @@ const colorScale = greenScale([0, 60]);
 const ResultTd = ({ value }: any) => (
   <td
     className={classes.cell}
-    style={{ backgroundColor: colorScale(value).css() as any }}
+    style={{ backgroundColor: (colorScale(value) as any).css() as any }}
   >
     {value ?? "-"}
   </td>

+ 1 - 1
app/src/components/data/Precipitation/index.tsx

@@ -13,7 +13,7 @@ const colorScale = blueScale([0, 300]);
 const ResultTd = ({ value }: any) => (
   <td
     className={classes.cell}
-    style={{ backgroundColor: colorScale(value).css() as any }}
+    style={{ backgroundColor: (colorScale(value) as any).css() as any }}
   >
     {value ?? "-"}
   </td>