feat: shorten long addresses in funding page

This commit is contained in:
siiky 2025-05-15 16:48:02 +01:00
parent 4092025b72
commit b3427fec74
2 changed files with 10 additions and 8 deletions

View file

@ -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 */