Skip to content

Commit

Permalink
fix(client): incorrect confirmation date(ARTP-907)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyuhe committed Jan 3, 2020
1 parent f93baee commit b3693c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const formatTradeNotification = (trade: Trade, currencyPair: CurrencyPair) => ({
status: trade.status,
dealtCurrency: trade.dealtCurrency,
termsCurrency: currencyPair.terms,
valueDate: DateTime.fromJSDate(trade.tradeDate, { zone: 'utc' }).toFormat('dd MMM'),
valueDate: DateTime.fromJSDate(trade.valueDate, { zone: 'utc' }).toFormat('dd MMM'),
traderName: trade.traderName,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class NotificationContainer extends PureComponent<Props> {
const { dealtCurrency, tradeId } = lastTradeExecutionStatus.trade
const { terms } = currencyPair
if (lastTradeExecutionStatus.trade.status === TradeStatus.Done) {
const { direction, notional, spotRate, tradeDate } = lastTradeExecutionStatus.trade
const { direction, notional, spotRate, valueDate } = lastTradeExecutionStatus.trade

return (style: React.CSSProperties) => (
<TileNotification
Expand All @@ -61,7 +61,7 @@ export default class NotificationContainer extends PureComponent<Props> {
counterCurrency={terms}
notional={notional}
rate={spotRate}
date={tradeDate}
date={valueDate}
/>
</TileNotification>
)
Expand Down

0 comments on commit b3693c1

Please sign in to comment.