Skip to content

Commit

Permalink
Merge pull request #542 from DeXter-on-Radix/fix-account-selection-bug
Browse files Browse the repository at this point in the history
fix account history fetching bug
  • Loading branch information
dcts authored Aug 5, 2024
2 parents 60eef5b + 703188f commit e8c805a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/state/accountHistorySlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8c805a

Please sign in to comment.