Skip to content

Commit

Permalink
Merge pull request #599 from DeXter-on-Radix/fix-cancel-order-bug
Browse files Browse the repository at this point in the history
fix selection not reset when switching pairs
  • Loading branch information
fliebenberg authored Nov 3, 2024
2 parents 0b30e58 + bf4dc59 commit 0697468
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 0697468

Please sign in to comment.