Skip to content

Commit

Permalink
fix(SFOX): use prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Welber committed Jul 2, 2018
1 parent b9c844a commit 83081c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const tradeDateHelper = (trade) => {

const TradeItem = props => {
const { conversion, handleClick, handleFinish, handleTradeCancel, trade, status, cancelTradeId, partner } = props
const tradeReceiveAmount = partner === 'sfox' ? trade.receiveAmount - trade.feeAmount : trade.receiveAmount
const tradeReceiveAmount = partner === 'sfox' ? prop('receiveAmount', trade) - prop('feeAmount', trade) : prop('receiveAmount', trade)
const receiveAmount = trade.isBuy ? trade.receiveAmount : Exchange.displayFiatToFiat({ value: tradeReceiveAmount })
const exchangeAmount = trade.isBuy ? Exchange.displayFiatToFiat({ value: trade.sendAmount / conversion.buy }) : trade.sendAmount / conversion.sell
const canCancel = trade.isBuy && canCancelTrade(trade)
Expand Down

0 comments on commit 83081c9

Please sign in to comment.