This is my Button to buy Items. Maybe somebody can help my why the price is undefined. The askingPrice in the Moralis Dashboard is correct.
Hi,
We are going to need more information, like what is the code that sets the name for that button, how is that price obtained in the code.
itemForSale.getElementsByTagName("button")[0].innerText =
Buy for ${item.askingPrice};
This line should be correct idk what i can send you too.
If item.askingPrice
is set correctly (you can check that with a console.log(item.askingPrice) before that line), then you’ll have to fix that syntax with ${variable}
1 Like
Thanks for your help!