Skip to content

fix: ensure green energy use is a boolean in normalise function

Tommy Ferry requested to merge fix/green-energy-usage-boolean into master

Updates the normaliseEntry() function to cast an entry's 'green' value to a boolean, correcting type mismatch issues with data retrieval.

This also fixes related issues with the following functions:

  • routeHistory()
  • routeBadgeHTML()

Merge request reports