4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-14 11:15:50 +00:00

Speed up loading by showing 25 historic trades instead of 100, as a temporary solution until core optimizations are complete.

This commit is contained in:
CalDescent 2022-09-24 17:51:49 +01:00
parent af28e59ecd
commit c092bc05bd

View File

@ -2554,7 +2554,7 @@ class TradePortal extends LitElement {
})
const getCompletedTrades = async () => {
const url = `http://NODEURL/crosschain/trades?limit=100&reverse=true&foreignBlockchain=FOREIGN_BLOCKCHAIN`
const url = `http://NODEURL/crosschain/trades?limit=25&reverse=true&foreignBlockchain=FOREIGN_BLOCKCHAIN`
const res = await fetch(url)
const historicTrades = await res.json()
const compareFn = (a, b) => {