Skip to content

Commit

Permalink
downpayment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sypeer committed Oct 3, 2022
1 parent 8a42239 commit 1eeb6f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,14 @@ $(document).ready(() => {
}

const price = result.data.submitBidArgs.totalPurchasePrice/1e18
const payment = result.data.submitBidArgs.downPayment/1e18

const newCard = $("#nft-card-template").clone()
newCard.appendTo("#test-div")
newCard.show()
newCard.attr('id', `search-result`)
newCard.find(`.heading-25.nft-price`).text(Number(price).toFixed(3))
newCard.find(`.heading-25.apenow-price`).text(Number(price/2).toFixed(3))
newCard.find(`.heading-25.apenow-price`).text(Number(payment).toFixed(3))

let imageLink = result.data.addnlContextData.imageUrl
imageLink = imageLink.replace("ipfs://", "https://ipfs.io/ipfs/")
Expand Down

0 comments on commit 1eeb6f5

Please sign in to comment.