Skip to content

Commit

Permalink
const instead of function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeesun Kim authored and Jeesun Kim committed Mar 19, 2024
1 parent ef2b0ec commit 8680b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/shortenStellarAddress.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function shortenStellarAddress(address: string, size: number = 8) {
export const shortenStellarAddress = (address: string, size: number = 8) => {
const slice = Math.ceil(size / 2);

return `${address.substring(0, slice)}${address.substring(
address.length - slice,
)}`;
}
};

0 comments on commit 8680b25

Please sign in to comment.