Skip to content

Commit

Permalink
Merge pull request #1213 from KoalaSat/new-tor-engine
Browse files Browse the repository at this point in the history
New tor engine
  • Loading branch information
Reckless-Satoshi authored Mar 29, 2024
2 parents d77a066 + 9ae0402 commit 4d3a217
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
27 changes: 6 additions & 21 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions frontend/src/components/BookTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,11 @@ const BookTable = ({
: orders;
}, [showControls, orders, fav, paymentMethods]);

const loadingPercentage =
((federation.exchange.enabledCoordinators - federation.exchange.loadingCoordinators) /
federation.exchange.enabledCoordinators) *
100;

if (!fullscreen) {
return (
<Paper
Expand Down Expand Up @@ -938,12 +943,8 @@ const BookTable = ({
setPaymentMethods,
},
loadingOverlay: {
variant: 'determinate',
value:
((federation.exchange.enabledCoordinators -
federation.exchange.loadingCoordinators) /
federation.exchange.enabledCoordinators) *
100,
variant: loadingPercentage === 0 ? 'indeterminate' : 'determinate',
value: loadingPercentage,
},
}}
paginationModel={paginationModel}
Expand Down

0 comments on commit 4d3a217

Please sign in to comment.