Skip to content

Commit

Permalink
Clean up logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ebma committed Sep 3, 2024
1 parent 4907411 commit a6cae9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
11 changes: 0 additions & 11 deletions src/components/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,6 @@ const Table = <T,>({
globalFilter,
} = getState();

console.log(
'showSkeleton',
showSkeleton,
'isLoading',
isLoading,
'data.length',
data.length,
'getRowModel().rows.length',
getRowModel().rows.length,
);

return (
<>
{search ? (
Expand Down
10 changes: 1 addition & 9 deletions src/pages/spacewalk/transactions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ function Transactions(): JSX.Element {
const [data, setData] = useState<TTransfer[] | undefined>(undefined);
const [isLoading, setIsLoading] = useState<boolean>(true);

useEffect(() => {
console.log('Mounting Transactions');
return () => {
console.log('Unmounting Transactions');
};
}, []);

useEffect(() => {
let unsub: VoidFn = () => undefined;
subscribeActiveBlockNumber((blockNumber) => {
Expand Down Expand Up @@ -122,15 +115,14 @@ function Transactions(): JSX.Element {
return entries;
};

setIsLoading(true);
fetchAllEntries()
.then((res) => {
setData(res);
console.log('after set data');
})
.catch(console.error)
.finally(() => {
setIsLoading(false);
console.log('after set loading');
});
}, [activeBlockNumber, walletAccount, getIssueRequests, getRedeemRequests]);

Expand Down

0 comments on commit a6cae9f

Please sign in to comment.