Skip to content

ONE DAYS I SEARCH SOLUTION FOR THIS " Array.prototype.map() expects a value to be returned at the end of arrow function" THANKS ANSWER ME SIR #6

@minplusnft

Description

@minplusnft

{apicall.map((nft, i) => {
var owner = nft.wallet.toLowerCase();
if (owner.indexOf(nft.holder) !== -1) {
async function stakeit() {
vaultcontract.methods.stake([nft.tokenId]).send({ from: account });
}
return (



<img className="card-img-top" src={nftpng + nft.tokenId + '.png'} alt="" />



Net2Dev Collection NFT #{nft.tokenId}

Status<p style={{ color: "#39FF14", fontWeight: "bold", textShadow: "1px 1px 2px #000000" }}>Ready to Stake




<Button style={{ marginLeft: '2px', backgroundColor: "#ffffff10" }} onClick={stakeit}>Stake it




)}})}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions