Fix loading line in Book

This commit is contained in:
KoalaSat 2024-03-29 10:47:27 +01:00
parent d77a066bd9
commit a30155327b
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -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
@ -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}