Skip to content

Commit

Permalink
feat: make calculateDepreciatedBuildPrice() method public
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Nov 27, 2024
1 parent 1804eea commit 46873e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/Property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Property {
return newBuildPrice;
}

private calculateDepreciatedBuildPrice() {
public calculateDepreciatedBuildPrice() {
if (this.age === 0) return this.newBuildPrice; // If newbuild, return newBuildPrice and don't depreciate

let depreciatedBuildPrice = 0;
Expand Down

0 comments on commit 46873e3

Please sign in to comment.