Not too sure what is wrong with my logic below with regard to return listed price of nft… I cannot return any of the attributes in fact… Console.log(isListed.attributes) returns undefined however, console.log(isListed) returns an object
const { data: isListed } = useMoralisQuery(
// TableName
// Function for the query
"ActiveItem",
(query) => query.equalTo("nftAddress",nftAddress) && query.equalTo("tokenId",token_id)
)
const valid = isListed.length === 1|| isListed === undefined
if(valid){
console.log(isListed.attributes)
}