mirror of
https://github.com/Reckless-Satoshi/robosats.git
synced 2024-09-11 19:57:11 +03:00
Fix loading line in Book
This commit is contained in:
parent
9725be0d71
commit
f416d2ac17
@ -897,6 +897,11 @@ const BookTable = ({
|
||||
: orders;
|
||||
}, [showControls, orders, fav, paymentMethods]);
|
||||
|
||||
const loadingPercentage =
|
||||
((federation.exchange.enabledCoordinators - federation.exchange.loadingCoordinators) /
|
||||
federation.exchange.enabledCoordinators) *
|
||||
100;
|
||||
|
||||
if (!fullscreen) {
|
||||
return (
|
||||
<Paper
|
||||
@ -928,12 +933,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}
|
||||
|
Loading…
Reference in New Issue
Block a user