Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TechandEco committed Jan 23, 2024
1 parent 84dce08 commit 40cd88f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/sections/BuildingInsightsSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
// Create the solar panels on the map.
const solarPotential = buildingInsights.solarPotential;
const palette = createPalette(panelsPalette, 256).map(rgbToColor);
const palette = createPalette(panelsPalette).map(rgbToColor);
const minEnergy = solarPotential.solarPanels.slice(-1)[0].yearlyEnergyDcKwh;
const maxEnergy = solarPotential.solarPanels[0].yearlyEnergyDcKwh;
solarPanels = solarPotential.solarPanels.map((panel) => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/sections/Sections.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
bind:expandedSection
bind:buildingInsights
bind:configId
bind:panelCapacityWattsInput
bind:showPanels
bind:panelCapacityWatts={panelCapacityWattsInput}
{googleMapsApiKey}
{geometryLibrary}
{location}
Expand Down

0 comments on commit 40cd88f

Please sign in to comment.