Skip to content

Commit

Permalink
chore: cleanup unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Oct 26, 2023
1 parent d30059a commit 20bf68a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/app/screens/Home/DefaultView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,8 @@ const DefaultView: FC<Props> = (props) => {
const itemsLimit = 8;

useEffect(() => {
if (account?.id) loadTransactions(itemsLimit);
}, [
account?.id,
balancesDecorated?.accountBalance,
loadTransactions,
itemsLimit,
]);
loadTransactions(itemsLimit);
}, [balancesDecorated?.accountBalance, loadTransactions, itemsLimit]);

// check if currentURL is blocked
useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/app/screens/Transactions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Transactions() {
keyPrefix: "transactions",
});

const { account, balancesDecorated, accountLoading } = useAccount();
const { balancesDecorated, accountLoading } = useAccount();

const { transactions, isLoadingTransactions, loadTransactions } =
useTransactions();
Expand All @@ -20,8 +20,8 @@ function Transactions() {
const listItems = transactions;

useEffect(() => {
if (account?.id) loadTransactions();
}, [account?.id, balancesDecorated?.accountBalance, loadTransactions]);
loadTransactions();
}, [balancesDecorated?.accountBalance, loadTransactions]);

return (
<Container>
Expand Down

0 comments on commit 20bf68a

Please sign in to comment.