Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Dec 20, 2024
1 parent c8f6f7e commit 1598c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/hooks/useSeen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useEffect, useRef } from 'react';
import { BonsaiCore } from '@/abacus-ts/ontology';
import { shallowEqual } from 'react-redux';

import { getUserWalletAddress } from '@/state/accountSelectors';
import { setSeenFills, setSeenOpenOrders, setSeenOrderHistory } from '@/state/accountUiMemory';
import { getSelectedNetwork } from '@/state/appSelectors';
import { useAppDispatch, useAppSelector } from '@/state/appTypes';
Expand All @@ -13,7 +12,7 @@ export function useViewPanel(
kind: 'fills' | 'openOrders' | 'orderHistory'
) {
const networkId = useAppSelector(getSelectedNetwork);
const walletId = useAppSelector(getUserWalletAddress);
const walletId = useAppSelector((state) => state.wallet.localWallet?.address);
const height = useAppSelector(BonsaiCore.network.indexerHeight.data);
const lastSetCore = useRef<any[]>([]);

Expand Down
2 changes: 1 addition & 1 deletion src/state/accountSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ export const getUserSubaccountNumber = (state: RootState) =>

export const getAccountUiMemory = (state: RootState) => state.accountUiMemory;
export const getCurrentAccountMemory = createAppSelector(
[getSelectedNetwork, getUserWalletAddress, getAccountUiMemory],
[getSelectedNetwork, (state) => state.wallet.localWallet?.address, getAccountUiMemory],
(networkId, walletId, memory) => memory[walletId ?? '']?.[networkId]
);

Expand Down

0 comments on commit 1598c13

Please sign in to comment.