remove unused code and add more detail to max rent info

This commit is contained in:
Niklas Meinzer
2024-09-29 10:19:06 +02:00
parent ee8a1e3ffb
commit 49e4da2da8
2 changed files with 6 additions and 15 deletions

View File

@@ -112,16 +112,3 @@ export const flatData = {
const addedCost = 1.2;
export const minRent = 9.45 + addedCost;
export const maxRent = 13.06 + addedCost;
// Calculate total number of people
var _numPeople = 0;
for (const building of Object.keys(flatData)) {
for (const floor of Object.keys(flatData[building])) {
for (const flat of flatData[building][floor]) {
_numPeople += flat.numPeople;
}
}
}
const numPeopleTotal = _numPeople;