remove unused code and add more detail to max rent info
This commit is contained in:
13
src/Data.js
13
src/Data.js
@@ -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;
|
||||
Reference in New Issue
Block a user