Secondary sales flickering (#202)

* Resales tab added

* updated review changes

* secondary sales flickering updated

Co-authored-by: Jordan Prince <jordanmprince@gmail.com>
This commit is contained in:
Flappy 2021-08-10 18:49:00 +05:30 committed by GitHub
parent 397ceff70b
commit d2e0547296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,9 @@ export const HomeView = () => {
if (flag == 1) return true; else return false;
};
const resaleAuctions = auctions.filter(m => checkPrimarySale(m) == true);
const resaleAuctions = auctions
.sort((a, b) => a.auction.info.endedAt?.sub(b.auction.info.endedAt || new BN(0)).toNumber() || 0)
.filter(m => checkPrimarySale(m) == true);
// Removed resales from live auctions
const liveAuctions = auctions
@ -242,4 +244,4 @@ export const HomeView = () => {
</Layout>
</Layout>
);
};
};