Skip to content

Commit

Permalink
wrong maturity date
Browse files Browse the repository at this point in the history
  • Loading branch information
Libras1 committed Jul 3, 2020
1 parent 7a8fd09 commit 2128e12
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/components/lending/DappLendingOrdersTable/DetailsDrawer.jsx
Expand Up @@ -125,24 +125,17 @@ function Info({item, renderSideIcon}) {
<Value>{formatDate(item.time, 'LL-dd HH:mm:ss')}</Value>
</Row>

{(item.status.toUpperCase() === "OPEN") &&
(<Row>
<Label><FormattedMessage id="exchangeLendingPage.orders.closeDate" /></Label>
<Value>{formatDate(Number(item.liquidationTime)*1000, 'LL-dd HH:mm:ss')}</Value>
</Row>)
}
{(item.status.toUpperCase() !== "OPEN") &&
(<Row>
<Label><FormattedMessage id="exchangeLendingPage.orders.trade.closedContract" /></Label>
<Value>{formatDate(item.updatedAt, 'LL-dd HH:mm:ss')}</Value>
</Row>)
}
{(item.status.toUpperCase() !== "OPEN") &&
(<Row>
<Label><FormattedMessage id="exchangeLendingPage.orders.closeDate" /></Label>
<Value>{formatDate(Number(item.liquidationTime)*1000, 'LL-dd HH:mm:ss')}</Value>
</Row>)
}
}
<Row>
<Label><FormattedMessage id="exchangeLendingPage.orders.closeDate" /></Label>
<Value>{formatDate(Number(item.liquidationTime)*1000, 'LL-dd HH:mm:ss')}</Value>
</Row>

<Row>
<Label><FormattedMessage id="exchangePage.type" /></Label>
<Value>{ORDERTYPES[item.type]}-{TOPUPTYPES[item.autoTopUp]}</Value>
Expand Down

0 comments on commit 2128e12

Please sign in to comment.