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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
minplusnft opened this issue May 26, 2023 · 0 comments

Comments

@minplusnft
Copy link

{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




)}})}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant