forked from cerc-io/snowballtools-base
* Fix format of eth address to display * Set authority for record name from backend config * Add functionality to open repo button * Use commit author image and commit url in activity card * Handle review changes * Fix commit author as null * Add timeout to move to next page on project creation --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
8 lines
194 B
TypeScript
8 lines
194 B
TypeScript
export const formatAddress = (address: string) => {
|
|
if (address.startsWith('0x') && address.length > 10) {
|
|
return address.slice(0, 6) + '..' + address.slice(-4);
|
|
}
|
|
|
|
return address;
|
|
};
|