minor tweaks

This commit is contained in:
Khalim Conn-Kowlessar 2024-09-09 18:05:21 +01:00
parent 0311c770eb
commit be347143f1
2 changed files with 4 additions and 2 deletions

View file

@ -65,7 +65,7 @@ const statusColor: {
propertyHoverText: "This property is currently in the assessment stage",
},
survey: {
class: "bg-emerald-500 hover:bg-emerald-500",
class: "bg-brandblue hover:bg-hoverblue",
text: "survey",
hoverText: "This portfolio is currently in the survey stage",
propertyHoverText: "This property is currently in the survey stage",

View file

@ -71,7 +71,9 @@ export default async function EnergyAssessmentsPage({
const propertyMeta = await getPropertyMeta(params.propertyId);
const ea = await getEnergyAssessment(propertyMeta.uprn);
if (!ea) {
// ea will be an empty object {} if there is no energy assessment
if (Object.keys(ea).length === 0) {
return (
<div className="flex items-center justify-center min-h-screen">
<div className="text-center text-gray-500">