Skip to content

Commit

Permalink
Fix for depth chart not updating on flip, close bitshares#16
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Jan 19, 2017
1 parent 4e82867 commit 3d5c5e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/app/components/Exchange/DepthHighChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ class DepthHighChart extends React.Component {

shouldComponentUpdate(nextProps) {
let settleCheck = isNaN(nextProps.settlementPrice) ? false : nextProps.settlementPrice !== this.props.settlementPrice;

return (
didOrdersChange(nextProps.orders, this.props.orders) ||
didOrdersChange(nextProps.call_orders, this.props.call_orders) ||
settleCheck ||
nextProps.feedPrice !== this.props.feedPrice ||
nextProps.leftOrderBook !== this.props.leftOrderBook ||
// nextProps.SQP !== this.props.SQP ||
nextProps.LCP !== this.props.LCP ||
nextProps.showCallLimit !== this.props.showCallLimit ||
nextProps.hasPrediction !== this.props.hasPrediction ||
nextProps.settlementPrice !== this.props.settlementPrice
nextProps.settlementPrice !== this.props.settlementPrice ||
nextProps.marketReady !== this.props.marketReady
);
}

Expand Down
2 changes: 2 additions & 0 deletions web/app/components/Exchange/Exchange.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ class Exchange extends React.Component {
</div>) : (
<div className="grid-block vertical no-padding shrink" >
<DepthHighChart
marketReady={marketReady}
orders={marketLimitOrders}
showCallLimit={showCallLimit}
call_orders={marketCallOrders}
Expand Down Expand Up @@ -1225,6 +1226,7 @@ class Exchange extends React.Component {
</div>
<div className="grid-block no-padding no-margin vertical shrink">
<DepthHighChart
marketReady={marketReady}
orders={marketLimitOrders}
showCallLimit={showCallLimit}
call_orders={marketCallOrders}
Expand Down

0 comments on commit 3d5c5e0

Please sign in to comment.