feat: shorten long addresses in funding page
This commit is contained in:
parent
4092025b72
commit
b3427fec74
2 changed files with 10 additions and 8 deletions
|
|
@ -11,6 +11,8 @@ const shortenByEllipses = (str, contextLength, ellipsesLength) =>
|
|||
].join('')
|
||||
|
||||
const formatAddress = (cryptoCode, address) => {
|
||||
if (!cryptoCode || !address) return { address: null, addressDisplay: null }
|
||||
|
||||
address = formatCryptoAddress(cryptoCode, address)
|
||||
let addressDisplay =
|
||||
address.length > 84 /* 2*BTC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue