-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add gas object to Household #296
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
97a2596
to
519c282
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are much clearer! One small question / comment.
app/models/Household.ts
Outdated
public gasDemand = { | ||
kwhExistingBuildYearly: 0, | ||
kwhNewBuildOrRetrofitYearly: 0, | ||
billExistingBuildYearly: 0, | ||
billNewBuildOrRetrofitYearly: 0 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this have to be an instantiated object, or can it just be a type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh this was me confusing myself 😓 changed back to type in eca2ba6
When working on social value, I found we needed to access the kwh demand figure from
Household
, so this PR refactorsHousehold
to store those values in a newgasDemand
object property and makes its methods more concise too.