From bf4dc59ce80621798dfabbbd71623170e6aec2c5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 2 Nov 2024 16:50:08 +0100 Subject: [PATCH] fix selection not reset when switching pairs --- src/app/components/PairSelector.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/PairSelector.tsx b/src/app/components/PairSelector.tsx index 06d646a3..a0a5e550 100644 --- a/src/app/components/PairSelector.tsx +++ b/src/app/components/PairSelector.tsx @@ -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; @@ -95,6 +96,7 @@ export function PairSelector() { pairName: option["name"], }) ); + dispatch(accountHistorySlice.actions.resetSelectedOrdersToCancel()); setHighlightedIndex(-1); setIsOpen(!isOpen); },