Skip to content

Commit 6dc1ee6

Browse files
committed
refactor(ui): chunk deposit address spacing by 4
1 parent e18eb15 commit 6dc1ee6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/[locale]/staking/deposit-contract.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ const StyledFakeLink = (props: ButtonProps) => (
154154
/>
155155
)
156156

157-
const CHUNKED_ADDRESS = DEPOSIT_CONTRACT_ADDRESS.match(/.{1,3}/g)?.join(" ")
157+
const CHUNKED_ADDRESS =
158+
DEPOSIT_CONTRACT_ADDRESS.match(/(?:^0x|.{4})/g)?.join(" ")
158159

159160
const blockieSrc = makeBlockie(DEPOSIT_CONTRACT_ADDRESS)
160161

0 commit comments

Comments
 (0)