From 703188fafd1b6da63e443fec93296cfaafcc48f8 Mon Sep 17 00:00:00 2001 From: dcts Date: Mon, 5 Aug 2024 11:27:52 +0200 Subject: [PATCH] fix bug --- src/app/state/accountHistorySlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/state/accountHistorySlice.ts b/src/app/state/accountHistorySlice.ts index 9167fc97..106096cc 100644 --- a/src/app/state/accountHistorySlice.ts +++ b/src/app/state/accountHistorySlice.ts @@ -79,7 +79,7 @@ export const fetchAccountHistoryAllPairs = createAsyncThunk< (pairInfo) => pairInfo.address ); - const account = state.radix?.walletData.accounts[0]?.address || ""; + const account = state.radix?.selectedAccount?.address || ""; const orderHistoryPromises = pairAddresses.map((pairAddress) => adex.getAccountOrders(account, pairAddress, 0)