Merge pull request #291 from gerlofvanek/offers-11

Fix: Update orderbook rates.
This commit is contained in:
tecnovert
2025-04-01 21:08:21 +00:00
committed by GitHub

View File

@@ -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);