From fc6ad4895036f0ed78b0aa64cc16cd4a75d24961 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Mon, 21 Aug 2023 11:15:10 -0700 Subject: [PATCH] Small fixes --- frontend/src/basic/OrderPage/index.tsx | 2 +- frontend/src/contexts/AppContext.ts | 5 +---- frontend/static/federation.json | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/basic/OrderPage/index.tsx b/frontend/src/basic/OrderPage/index.tsx index ff6a573b3..b52aaaad7 100644 --- a/frontend/src/basic/OrderPage/index.tsx +++ b/frontend/src/basic/OrderPage/index.tsx @@ -51,7 +51,7 @@ const OrderPage = (): JSX.Element => { clearOrder(); setCurrentOrder(newOrder); } - }, [params.orderId]); + }, [params]); const onClickCoordinator = function (): void { setFocusedCoordinator(currentOrder.shortAlias); diff --git a/frontend/src/contexts/AppContext.ts b/frontend/src/contexts/AppContext.ts index a74915b8d..c0e1256a3 100644 --- a/frontend/src/contexts/AppContext.ts +++ b/frontend/src/contexts/AppContext.ts @@ -606,10 +606,7 @@ export const useAppStore = (): UseAppStoreType => { const updateExchange = (): void => { const onlineCoordinators = Object.keys(federation).reduce((count, shortAlias): number => { - if ( - !(federation[shortAlias]?.loadingInfo) && - federation[shortAlias]?.info !== undefined - ) { + if (!federation[shortAlias]?.loadingInfo && federation[shortAlias]?.info !== undefined) { return count + 1; } else { return count; diff --git a/frontend/static/federation.json b/frontend/static/federation.json index 029b21c7f..bd6e13db3 100644 --- a/frontend/static/federation.json +++ b/frontend/static/federation.json @@ -92,7 +92,7 @@ "donatesToDevFund": 0 }, "mainnet": { - "onion": "none.onion", + "onion": "http://none.onion", "clearnet": "http://127.0.0.1:8000" }, "policies": {