Skip to content

Commit

Permalink
style: resolve format conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Jul 22, 2024
1 parent b0125fc commit 2ac174f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const truncateAddress = (address: string) => {

export const formatTimestampToDate = (timestamp: number): string => {
return new Date(timestamp * 1000).toLocaleDateString();
};

export function formatDataNumber(input: string | number, formatDecimal = 3, currency?: boolean, compact?: boolean) {
const res: number = Number.parseFloat(input.toString());
Expand Down

0 comments on commit 2ac174f

Please sign in to comment.