diff --git a/TCalcCore/Logic/TourCalculator.cs b/TCalcCore/Logic/TourCalculator.cs
index 007407bb..24408a07 100644
--- a/TCalcCore/Logic/TourCalculator.cs
+++ b/TCalcCore/Logic/TourCalculator.cs
@@ -195,7 +195,7 @@ public Tour SuggestFinalPayments()
ToGuid = new[] { creditors.First().GUID }.ToList(),
ToAll = false,
AmountInCents = credit > highestDebt ? highestDebt : credit,
- Description = $"'{debtors.First()?.Name ?? "n/a"}' -> '{creditors.First()?.Name ?? "n/a"}'",
+ Description = $"X '{debtors.First()?.Name ?? "n/a"}' -> '{creditors.First()?.Name ?? "n/a"}'",
GUID = Guid.NewGuid().ToString()
});
// add spending
diff --git a/TourCalcWebApp/App/containers/appstate.jsx b/TourCalcWebApp/App/containers/appstate.jsx
index fec81377..7fbd2047 100644
--- a/TourCalcWebApp/App/containers/appstate.jsx
+++ b/TourCalcWebApp/App/containers/appstate.jsx
@@ -169,7 +169,7 @@ export default class AppState {
comp.setState(this.state);
},
(error) => {
- alert('Error loading tour')
+ //alert('Error loading tour')
this.state = {
isTourLoaded: true,
error
diff --git a/TourCalcWebApp/App/containers/tour-person-edit.jsx b/TourCalcWebApp/App/containers/tour-person-edit.jsx
index 50315270..63effc48 100644
--- a/TourCalcWebApp/App/containers/tour-person-edit.jsx
+++ b/TourCalcWebApp/App/containers/tour-person-edit.jsx
@@ -27,7 +27,7 @@ export default class PersonForm extends React.Component {
super(props);
this.state = {
dialogOpen: props.open,
- person: props.person == null ? { name: "", weight: 100, parentId: "" } : props.person,
+ person: props.person == null ? { name: "", weight: 100, parentId: "" } : JSON.parse(JSON.stringify(props.person)),
tour: props.tour
}
}
diff --git a/TourCalcWebApp/App/containers/tour-spending-edit.jsx b/TourCalcWebApp/App/containers/tour-spending-edit.jsx
index ecdafd3a..54e84617 100644
--- a/TourCalcWebApp/App/containers/tour-spending-edit.jsx
+++ b/TourCalcWebApp/App/containers/tour-spending-edit.jsx
@@ -37,7 +37,7 @@ export default class SpendingsForm extends React.Component {
constructor(props) {
super(props);
this.tour = props.tour
- if (props.spending != null) this.spending = props.spending
+ if (props.spending != null) this.spending = JSON.parse(JSON.stringify(props.spending))
else this.spending.fromGuid = this.tour.persons.length > 0 ? this.tour.persons[0].guid : ""
this.state = {
dialogOpen: props.open,
diff --git a/TourCalcWebApp/App/containers/tour-ui.jsx b/TourCalcWebApp/App/containers/tour-ui.jsx
index ad05d854..0cfb91ed 100644
--- a/TourCalcWebApp/App/containers/tour-ui.jsx
+++ b/TourCalcWebApp/App/containers/tour-ui.jsx
@@ -150,8 +150,9 @@ class TourTable extends React.Component {
app={this}
>
-