Skip to content

Commit

Permalink
fix selection not reset when switching pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcts committed Nov 2, 2024
1 parent 0b30e58 commit bf4dc59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/PairSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import React from "react";
import { searchPairs } from "utils";

import { BLACKLISTED_PAIRS } from "../data/BLACKLISTED_PAIRS";
import { accountHistorySlice } from "state/accountHistorySlice";

interface PairInfo {
name: string;
Expand Down Expand Up @@ -95,6 +96,7 @@ export function PairSelector() {
pairName: option["name"],
})
);
dispatch(accountHistorySlice.actions.resetSelectedOrdersToCancel());
setHighlightedIndex(-1);
setIsOpen(!isOpen);
},
Expand Down

0 comments on commit bf4dc59

Please sign in to comment.