mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
minor tweaks
This commit is contained in:
parent
0311c770eb
commit
be347143f1
2 changed files with 4 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue