@@ -279,7 +289,7 @@ export default class OrderPage extends Component {
)}
// If the order does not yet have an escrow deposited. Show dialog
// to confirm forfeiting the bond
- if (this.state.statusCode in [0,1,3,6,7]){
+ if (this.state.status in [0,1,3,6,7]){
return(
@@ -305,24 +315,24 @@ export default class OrderPage extends Component {
-
+
- {this.state.isParticipant ?
+ {this.state.is_participant ?
<>
- {this.state.takerNick!='None' ?
+ {this.state.taker_nick!='None' ?
<>
-
+
@@ -334,7 +344,7 @@ export default class OrderPage extends Component {
-
+
>
@@ -353,7 +363,7 @@ export default class OrderPage extends Component {
-
+
@@ -362,8 +372,8 @@ export default class OrderPage extends Component {
- {this.state.priceNow?
-
+ {this.state.price_now?
+
:
(this.state.isExplicit ?
@@ -386,7 +396,7 @@ export default class OrderPage extends Component {
-
+
@@ -408,7 +418,7 @@ export default class OrderPage extends Component {
{/* Participants can see the "Cancel" Button, but cannot see the "Back" or "Take Order" buttons */}
- {this.state.isParticipant ?
+ {this.state.is_participant ?
:
<>
@@ -427,21 +437,21 @@ export default class OrderPage extends Component {
orderDetailsPage (){
return(
- this.state.badRequest ?
+ this.state.bad_request ?
- {this.state.badRequest}
+ {this.state.bad_request}
:
- (this.state.isParticipant ?
+ (this.state.is_participant ?
{this.orderBox()}
-
+
:
diff --git a/frontend/src/components/TradeBox.js b/frontend/src/components/TradeBox.js
index 7b91e9cc..b132ebf4 100644
--- a/frontend/src/components/TradeBox.js
+++ b/frontend/src/components/TradeBox.js
@@ -61,7 +61,7 @@ export default class TradeBox extends Component {
};
fetch('/api/order/' + '?order_id=' + this.props.data.id, requestOptions)
.then((response) => response.json())
- .then((data) => (this.props.data = data));
+ .then((data) => this.props.completeSetState(data));
this.handleClickCloseConfirmDispute();
}
@@ -140,26 +140,26 @@ export default class TradeBox extends Component {