diff --git a/backend/core/src/shared/units-transformations.ts b/backend/core/src/shared/units-transformations.ts
index 47516548dc..a26533dc4d 100644
--- a/backend/core/src/shared/units-transformations.ts
+++ b/backend/core/src/shared/units-transformations.ts
@@ -181,6 +181,9 @@ const hmiData = (units: Units, maxHouseholdSize: number, amiCharts: AmiChart[])
rowData[`ami${currentAmiPercent}`] = ""
}
} else {
+ if (!uniquePercentCharts[0].chart) {
+ return
+ }
// If we have chart data, create a max income range string
const firstChartValue = findAmiValueInChart(
uniquePercentCharts[0].chart.items,
diff --git a/sites/public/email_templates/email.html b/sites/public/email_templates/email.html
new file mode 100644
index 0000000000..de47df9cf8
--- /dev/null
+++ b/sites/public/email_templates/email.html
@@ -0,0 +1,461 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Rental opportunity at /Listing Name/
+
+
+
+
+
+ Application Due
+ |
+
+ /Date/
+ |
+
+
+
+ Address
+ |
+
+ /Street Address/
+ |
+
+
+
+ Units
+ |
+
+ /Detail/
+ |
+
+
+
+ Rent
+ |
+
+ /Amount/
+ |
+
+
+
+ Minimum Income
+ |
+
+ /Amount/
+ |
+
+
+
+ Maximum Income
+ |
+
+ /Amount/
+ |
+
+
+
+ Lottery Due
+ |
+
+ /Date/
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
diff --git a/sites/public/email_templates/inlined.html b/sites/public/email_templates/inlined.html
new file mode 100644
index 0000000000..bfe2c98756
--- /dev/null
+++ b/sites/public/email_templates/inlined.html
@@ -0,0 +1,639 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ Rental opportunity at /Listing Name/
+
+
+
+
+
+
+ Application Due
+ |
+
+ /Date/
+ |
+
+
+
+ Address
+ |
+
+ /Street Address/
+ |
+
+
+
+ Units
+ |
+
+ /Detail/
+ |
+
+
+
+ Rent
+ |
+
+ /Amount/
+ |
+
+
+
+ Minimum Income
+ |
+
+ /Amount/
+ |
+
+
+
+ Maximum Income
+ |
+
+ /Amount/
+ |
+
+
+
+ Lottery Due
+ |
+
+ /Date/
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+