Skip to content

Commit f556256

Browse files
committed
fix: quick fix for the no address error
1 parent cf08dd7 commit f556256

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shared/utils/formatAddress.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ export const formatAddress = (
55
first: number = 6,
66
last: number = 4
77
): string => {
8-
if (!checkAddress(address)) {
9-
console.error("Invalid address!");
10-
}
8+
if (!address) return "";
119

1210
return `${address.slice(0, first)}...${address.slice(-last)}`;
1311
};

0 commit comments

Comments
 (0)