Skip to content

Commit

Permalink
fixup! feat(suite-native): make token selectors network agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Oct 1, 2024
1 parent 6a6f55a commit e8dde21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions suite-native/tokens/src/tokensSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const selectAccountTokenTransactions = memoizeWithArgs(
),
),
) as WalletAccountTransaction[],
{ size: 500 },
{ size: 50 },
);

const selectAllAccountTokens = (
Expand Down Expand Up @@ -168,10 +168,10 @@ const selectAccountTransactionsWithTokensWithFiatRates = memoizeWithArgs(
isTransactionWithTokenTransfers(transaction)),
),
) as WalletAccountTransaction[],
{ size: 500 },
{ size: 50 },
);

export const selectAccountOrTokenAccountTransactions = (
export const selectAccountOrTokenTransactions = (
state: TransactionsRootState & TokenDefinitionsRootState,
accountKey: AccountKey,
tokenAddress: TokenAddress | null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { groupTransactionsByDate, isPending, MonthKey } from '@suite-common/wall
import { Box, Loader } from '@suite-native/atoms';
import {
TypedTokenTransfer,
selectAccountOrTokenAccountTransactions,
selectAccountOrTokenTransactions,
WalletAccountTransaction,
} from '@suite-native/tokens';
import { prepareNativeStyle, useNativeStyles } from '@trezor/styles';
Expand Down Expand Up @@ -150,7 +150,7 @@ export const TransactionList = ({
);

const transactions = useSelector((state: TransactionsRootState & TokenDefinitionsRootState) =>
selectAccountOrTokenAccountTransactions(
selectAccountOrTokenTransactions(
state,
accountKey,
tokenContract ?? null,
Expand Down

0 comments on commit e8dde21

Please sign in to comment.