Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfazakas committed Sep 1, 2023
2 parents 9f473b7 + b7a28df commit e0a1c7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/@utils/accessDetailsAndPricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ function getAccessDetailsFromTokenPrice(
// the last valid order should be the last reuse order tx id if there is one
accessDetails.validOrderTx = reusedOrder?.tx || order?.tx
}
accessDetails.templateId = tokenPrice.templateId
accessDetails.templateId =
typeof tokenPrice.templateId === 'string'
? parseInt(tokenPrice.templateId)
: tokenPrice.templateId
// TODO: fetch order fee from sub query
accessDetails.publisherMarketOrderFee = tokenPrice?.publishMarketFeeAmount

Expand Down

0 comments on commit e0a1c7b

Please sign in to comment.