Skip to content

Commit

Permalink
fix template id type
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfazakas committed Aug 29, 2023
1 parent 6f13803 commit d8925fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/@utils/accessDetailsAndPricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ 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
console.log('tokenPrice.templateId ', tokenPrice.templateId)
console.log(typeof 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 d8925fa

Please sign in to comment.