File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/botPage/view/TradeInfoPanel Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Summary from './Summary';
5
5
import TradeTable from './TradeTable' ;
6
6
import RunButton from './RunButton' ;
7
7
import ClearButton from './ClearButton' ;
8
+ import { roundBalance } from '../../common/tools' ;
8
9
9
10
const resetAnimation = ( ) => {
10
11
$ ( '.circle-wrapper' )
@@ -71,7 +72,14 @@ class AnimateTrade extends Component {
71
72
if ( contractStatus . id === 'contract.purchase_sent' ) {
72
73
resetAnimation ( ) ;
73
74
activateStage ( 0 ) ;
74
- this . setState ( { buy_price : contractStatus . data , stopMessage : this . indicatorMessages . stopping } ) ;
75
+
76
+ this . setState ( {
77
+ buy_price : roundBalance ( {
78
+ balance : contractStatus . proposal . ask_price ,
79
+ currency : contractStatus . currency ,
80
+ } ) ,
81
+ stopMessage : this . indicatorMessages . stopping ,
82
+ } ) ;
75
83
} else if ( contractStatus . id === 'contract.purchase_recieved' ) {
76
84
$ ( '.line' ) . addClass ( 'active' ) ;
77
85
activateStage ( 1 ) ;
@@ -81,6 +89,7 @@ class AnimateTrade extends Component {
81
89
activateStage ( 2 ) ;
82
90
this . setState ( { sell_id : contractStatus . data , stopMessage : this . indicatorMessages . stopped } ) ;
83
91
}
92
+
84
93
activateStage ( contractStatus . id ) ;
85
94
}
86
95
render ( ) {
You can’t perform that action at this time.
0 commit comments