Skip to content

Commit

Permalink
fix incorrect lending pair on dapp #272
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhvk committed Aug 6, 2020
1 parent 5d6c0d8 commit a823a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/app/lending/DappTrade/DappTrade.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class DappOrderPlace extends React.PureComponent<Props, State> {
handleTabsChartChange = (tabId) => this.setState({chartTadId: tabId})

render() {
const { currentPairName } = this.props
const { currentPair } = this.props

return (
<OrderFormCell isShow={true}>
Expand All @@ -65,10 +65,11 @@ export default class DappOrderPlace extends React.PureComponent<Props, State> {
</Cell>
</Grid>

{currentPairName &&
{currentPair.pair &&
(<Header>
<Pair to="/dapp/lending/pairs">
<PairName>{currentPairName}</PairName>
<PairName>{currentPair.termByDay}&nbsp;{currentPair.termByDay > 1 ? <FormattedMessage id="app.days" /> : <FormattedMessage id="app.day" />}
/{currentPair.lendingTokenSymbol}</PairName>
<Icon icon="caret-down" />
</Pair>

Expand Down
2 changes: 1 addition & 1 deletion src/store/models/lending/lendingTradingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function tradingPageSelector(state: State) {
const authenticated = accountDomain.authenticated()

return {
currentPairName: currentPair ? currentPair.pair : '',
currentPair,
authenticated,
isConnected,
isInitiated,
Expand Down

0 comments on commit a823a31

Please sign in to comment.