Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Sep 7, 2023
1 parent 4b2a281 commit fc6ad48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/basic/OrderPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const OrderPage = (): JSX.Element => {
clearOrder();
setCurrentOrder(newOrder);
}
}, [params.orderId]);
}, [params]);

const onClickCoordinator = function (): void {
setFocusedCoordinator(currentOrder.shortAlias);
Expand Down
5 changes: 1 addition & 4 deletions frontend/src/contexts/AppContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion frontend/static/federation.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"donatesToDevFund": 0
},
"mainnet": {
"onion": "none.onion",
"onion": "http://none.onion",
"clearnet": "http://127.0.0.1:8000"
},
"policies": {
Expand Down

0 comments on commit fc6ad48

Please sign in to comment.