mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-21 16:29:20 -04:00
feat(gui): Allow providers discovered via rendezvous to take priority (#177)
This commit is contained in:
parent
aca0d6aa74
commit
58800a5b53
@ -8,6 +8,7 @@ import { isCliLogRelatedToSwap } from "models/cliModel";
|
||||
import { SettingsState } from "./features/settingsSlice";
|
||||
import { NodesSlice } from "./features/nodesSlice";
|
||||
import { RatesState } from "./features/ratesSlice";
|
||||
import { sortProviderList } from "utils/sortUtils";
|
||||
|
||||
export const useAppDispatch = () => useDispatch<AppDispatch>();
|
||||
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
|
||||
@ -73,7 +74,9 @@ export function useAllProviders() {
|
||||
return useAppSelector((state) => {
|
||||
const registryProviders = state.providers.registry.providers || [];
|
||||
const listSellersProviders = state.providers.rendezvous.providers || [];
|
||||
return [...registryProviders, ...listSellersProviders];
|
||||
const all = [...registryProviders, ...listSellersProviders];
|
||||
|
||||
return sortProviderList(all);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user