Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Commit

Permalink
fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Camel Aissani committed May 18, 2021
1 parent bad12ec commit 015c861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/managers/occupantmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ function update(req, res) {
}
itemToKeep.entryDate = item.entryDate || occupant.beginDate;
itemToKeep.exitDate = item.exitDate || occupant.endDate;
itemToKeep.rent = item.rent || item.property.price;
itemToKeep.expenses = item.expenses || (item.property.expense && [{ title: 'general expense', amount: item.property.expense }]) || [];
itemToKeep.rent = item.rent || itemToKeep.property.price;
itemToKeep.expenses = item.expenses || (itemToKeep.property.expense && [{ title: 'general expense', amount: itemToKeep.property.expense }]) || [];
return itemToKeep;
});
}
Expand Down

0 comments on commit 015c861

Please sign in to comment.