fixed 'My trades' not appearing chronologically

This commit is contained in:
sairaj mote 2022-05-22 16:58:53 +05:30
parent 6ca0fb693e
commit 69a12ec5ed

View File

@ -1745,7 +1745,7 @@
}) })
} else { } else {
getRef('my_orders__title').textContent = 'My trades' getRef('my_orders__title').textContent = 'My trades'
transactions.reverse().forEach(transaction => { transactions.sort((a, b) => new Date(b.tx_time).getTime() - new Date(a.tx_time).getTime()).forEach(transaction => {
const { asset, quantity, unitValue, tx_time, buyer, seller } = transaction const { asset, quantity, unitValue, tx_time, buyer, seller } = transaction
let type, other; let type, other;
if (seller === proxy.userID) { if (seller === proxy.userID) {