Skip to content

Commit

Permalink
feat(usd wallet): show address as it is no formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Sep 9, 2020
1 parent c909c09 commit 0bb7d14
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ const BottomMultiRowContainer = styled.div`
const Copy = styled.div`
display: flex;
`
const AddressLine = styled.p`
margin: 0;
`

const printAddress = (address: string) => {
const lines = address.split(',')
return lines.map(line => <AddressLine key={line}>{line}</AddressLine>)
}

const Success: React.FC<Props> = props => {
return (
Expand Down Expand Up @@ -287,7 +279,7 @@ const Success: React.FC<Props> = props => {
/>
</Title>
<Value data-e2e='sbRecipientAddress'>
{printAddress((props.account.agent as AgentType).address)}
{(props.account.agent as AgentType).address}
</Value>
</div>
<Copy>
Expand Down

0 comments on commit 0bb7d14

Please sign in to comment.