Skip to content

Commit

Permalink
fix(ui): fix address too long error
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jun 14, 2019
1 parent 7383406 commit 3be5b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/pages/Address/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { Response } from '../../http/response/Response'
import { TransactionWrapper } from '../../http/response/Transaction'
import { fetchAddressInfo, fetchTransactionsByAddress } from '../../http/fetcher'
import { copyElementValue, shannonToCkb } from '../../utils/util'
import { validNumber } from '../../utils/string'
import { validNumber, startEndEllipsis } from '../../utils/string'
import TransactionCard from '../../components/Card/TransactionCard'

const AddressTitle = ({ address, lockHash }: { address: string; lockHash: string }) => {
Expand Down Expand Up @@ -216,7 +216,7 @@ export default (props: React.PropsWithoutRef<RouteComponentProps<{ address: stri
<SimpleLabel
image={AddressHashIcon}
label="Address: "
value={`${addressData.address_hash}`}
value={`${startEndEllipsis(addressData.address_hash)}`}
lengthNoLimit
/>
) : (
Expand Down

0 comments on commit 3be5b54

Please sign in to comment.