mirror of
https://github.com/basicswap/basicswap.git
synced 2025-05-07 05:12:16 +00:00
Merge pull request #291 from gerlofvanek/offers-11
Fix: Update orderbook rates.
This commit is contained in:
commit
5a202e447c
1 changed files with 2 additions and 0 deletions
|
@ -1062,6 +1062,7 @@ async function updateOffersTable() {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
updateRowTimes();
|
updateRowTimes();
|
||||||
updatePaginationControls(Math.ceil(validOffers.length / itemsPerPage));
|
updatePaginationControls(Math.ceil(validOffers.length / itemsPerPage));
|
||||||
|
updateProfitLossDisplays();
|
||||||
if (tableRateModule?.initializeTable) {
|
if (tableRateModule?.initializeTable) {
|
||||||
tableRateModule.initializeTable();
|
tableRateModule.initializeTable();
|
||||||
}
|
}
|
||||||
|
@ -2283,6 +2284,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
updateOffersTable();
|
updateOffersTable();
|
||||||
updatePaginationInfo();
|
updatePaginationInfo();
|
||||||
|
updateProfitLossDisplays();
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('[Debug] Error processing WebSocket message:', error);
|
console.error('[Debug] Error processing WebSocket message:', error);
|
||||||
|
|
Loading…
Reference in a new issue