@manifoldxyz/marketplace-sdk 1.0.1-beta.21 → 1.0.1-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -482,6 +482,8 @@ class MarketplaceListing {
|
|
|
482
482
|
this.listing.finalized = listing.finalized;
|
|
483
483
|
// @ts-expect-error Property 'currentBidAmount' does not exist on type 'Listing'.ts(2339)
|
|
484
484
|
this.listing.currentBidAmount = bignumber_1.BigNumber.from(listing.bid.amount);
|
|
485
|
+
// @ts-expect-error Property 'currentBidder' does not exist on type 'Listing'.ts(2339)
|
|
486
|
+
this.listing.currentBidder = listing.bid.bidder;
|
|
485
487
|
}
|
|
486
488
|
// Offers
|
|
487
489
|
if (this.listing.type == ListingType_1.default.OFFERS_ONLY ||
|
|
@@ -491,11 +493,13 @@ class MarketplaceListing {
|
|
|
491
493
|
}
|
|
492
494
|
const startTime = new Date(parseInt(listing.details.startTime) * 1000);
|
|
493
495
|
if (startTime.getTime() == 0) {
|
|
496
|
+
console.log('Timer starts on first bid or purchase');
|
|
494
497
|
// Timer starts on first bid or purchase
|
|
495
498
|
this.listing.startTime = undefined;
|
|
496
499
|
this.listing.duration = parseInt(listing.details.endTime);
|
|
497
500
|
}
|
|
498
501
|
else {
|
|
502
|
+
console.log('Timer starts on first bid or purchase 12312323');
|
|
499
503
|
this.listing.startTime = startTime;
|
|
500
504
|
this.listing.endTime = new Date(parseInt(listing.details.endTime) * 1000);
|
|
501
505
|
this.listing.duration =
|