Skip to content

Commit

Permalink
feat(sellp3): add check for from wallet if trading wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Dec 2, 2020
1 parent c660390 commit bc4c6ac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ const Success: React.FC<Props> = props => {
const sellCounterCurrency = sellOrder
? getFiatFromPair(sellOrder.pair)
: 'USD'

const isInternal = sellOrder?.kind.direction === 'INTERNAL'
const sellCounterAmount = sellOrder ? getSellCounterAmount(sellOrder) : 0

return sellOrder ? (
<Wrapper>
<div>
Expand Down Expand Up @@ -178,8 +177,9 @@ const Success: React.FC<Props> = props => {
/>
</Title>
<Value data-e2e='sbPaymentMethod'>
{/* fix this to account for trading wallet */}
{sellBaseCurrency} Wallet
{isInternal
? `${sellBaseCurrency} Trading Wallet`
: `${sellBaseCurrency} Trading Wallet`}
</Value>
</Row>
</div>
Expand Down

0 comments on commit bc4c6ac

Please sign in to comment.