From 1598c13c29d81bd6b62d1a3ce2df83846741c830 Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 20 Dec 2024 16:40:10 -0500 Subject: [PATCH] fix --- src/hooks/useSeen.ts | 3 +-- src/state/accountSelectors.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hooks/useSeen.ts b/src/hooks/useSeen.ts index b3ad82550..127923229 100644 --- a/src/hooks/useSeen.ts +++ b/src/hooks/useSeen.ts @@ -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'; @@ -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([]); diff --git a/src/state/accountSelectors.ts b/src/state/accountSelectors.ts index c74bd2334..b8f49aad7 100644 --- a/src/state/accountSelectors.ts +++ b/src/state/accountSelectors.ts @@ -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] );