From 4f14ffc2657d59f0ba72a04a5c08d8cc52684c2a Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Thu, 26 May 2022 17:58:17 +0300 Subject: [PATCH] removed logs and added some explanations --- src/@utils/accessDetailsAndPricing.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/@utils/accessDetailsAndPricing.ts b/src/@utils/accessDetailsAndPricing.ts index 6ce344d9c..ebd423b31 100644 --- a/src/@utils/accessDetailsAndPricing.ts +++ b/src/@utils/accessDetailsAndPricing.ts @@ -179,6 +179,7 @@ function getAccessDetailsFromTokenPrice( // asset is owned if there is an order and asset has timeout 0 (forever) or if the condition is valid accessDetails.isOwned = timeout === 0 || Date.now() / 1000 - order.createdTimestamp < timeout + // the last valid order should be the last reuse order tx id if there is one accessDetails.validOrderTx = reusedOrder ? reusedOrder.tx : order.tx }