Lee Morgan 2 ay önce
ebeveyn
işleme
cac474d9c0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -36,7 +36,7 @@ const renderForecast = (f)=>{
         tbody.children[0].children[i+1].textContent = `${f.apparent_temperature_min[i]} - ${f.apparent_temperature_max[i]}`;
         tbody.children[1].children[i+1].textContent = `${f.relative_humidity_2m_mean[i]}%`;
         tbody.children[2].children[i+1].textContent = `${f.precipitation_probability_max[i]}%`;
-        tbody.children[3].children[i+1].textContent = (f.precipitation_sum[i] / 25.4).to_fixed(2);
+        tbody.children[3].children[i+1].textContent = (f.precipitation_sum[i] / 25.4).toFixed(2);
         tbody.children[4].children[i+1].textContent = f.wind_speed_10m_max[i];
         tbody.children[5].children[i+1].textContent = sunrise.toLocaleTimeString("en-US", timeOptions);
         tbody.children[6].children[i+1].textContent = sunset.toLocaleTimeString("en-US", timeOptions);