Skip to content

Commit 0a553d1

Browse files
authored
feat(ui): display end of peerid instead of front (#1252)
1 parent f05f7de commit 0a553d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react/src/Components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function ShortClientAddress(props) {
2828
}
2929

3030
export function ShortPeerID(props) {
31-
const shortPeerId = props.peerId.substring(0, 8) + '…'
31+
const shortPeerId = '…' + props.peerId.slice(-8)
3232
return <div>{shortPeerId}</div>
3333
}
3434

0 commit comments

Comments
 (0)