GetUserItems Error Chrome

itemForSale.getElementsByTagName("button")[0].innerText = `Buy for ${item.askingPrice}`;
// itemForSale.getElementsByTagName("button")[0].onclick = () => buyItem(item);
itemForSale.id = `item-${item.uid}`;

this is ${item.askingPrice}; and itemForSale.id = item-${item.uid}`; giving me price undefined. though askingPrice is showing in the console. what might be the reason