Skip to content

Commit 5664cac

Browse files
committed
Removed debug output from some components and hooks.
1 parent cb38983 commit 5664cac

4 files changed

Lines changed: 0 additions & 9 deletions

File tree

packages/kit/src/components/AddressInput.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const AddressInput: FC<IAddressInput> = ({
3636
return
3737
}
3838

39-
console.debug('debug: SuiNS name resolving started')
4039
try {
4140
const resolvedAddress = await resolveSuinsName(suinsClient, name)
4241
if (resolvedAddress) {
@@ -58,7 +57,6 @@ const AddressInput: FC<IAddressInput> = ({
5857

5958
// Handle SuiNS names.
6059
if (newValue.endsWith('.sui') || newValue.startsWith('@')) {
61-
console.debug('debug: SuiNS name detected')
6260
debouncedResolve(newValue)
6361
return
6462
}

packages/kit/src/components/Balance.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const Balance = () => {
1313
const { balance } = useBalance({ autoRefetch: true });
1414

1515
if (balance == null) {
16-
console.debug("debug: Balance is null");
1716
return <></>;
1817
}
1918

packages/kit/src/hooks/useBalance.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@ const useBalance = ({
7373
const interval = setInterval(
7474
() => {
7575
if (currentAccount == null || !autoRefetch) {
76-
console.debug('debug: Balance refetching stopped')
7776
clearInterval(interval)
7877
return
7978
}
8079

8180
refetch()
82-
console.debug('debug: Balance refetched')
8381
},
8482
autoRefetch && autoRefetchInterval != null
8583
? autoRefetchInterval
@@ -96,7 +94,6 @@ const useBalance = ({
9694
error,
9795
refetch: async () => {
9896
refetch()
99-
console.debug('debug: Balance refetched')
10097
},
10198
}
10299
}

packages/kit/src/hooks/useNetworkType.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ const useNetworkType = ({
9191
if (newNetwork != null) {
9292
ctx.selectNetwork(newNetwork);
9393
}
94-
95-
console.debug("debug: Network type synchronized");
9694
};
9795

9896
useEffect(() => {
@@ -105,7 +103,6 @@ const useNetworkType = ({
105103
const interval = setInterval(
106104
() => {
107105
if (!wallet.isConnected || !autoSync) {
108-
console.debug("debug: Network type synchronizing stopped");
109106
setNetworkType(undefined);
110107
clearInterval(interval);
111108
return;

0 commit comments

Comments
 (0)