@@ -350,22 +350,22 @@ render() {
350
350
< div className = "ml-3 mr-3" style = { { display : "inline-grid" , gridTemplateColumns : "repeat(4, 5fr)" , columnGap : "20px" } } >
351
351
{ nftdata . map ( ( result , i ) => {
352
352
async function stakeit ( ) {
353
- vaultcontract . methods . stake ( [ item . tokenId ] ) . send ( { from : account } ) ;
353
+ vaultcontract . methods . stake ( [ result . token_id ] ) . send ( { from : account } ) ;
354
354
}
355
355
async function unstakeit ( ) {
356
- vaultcontract . methods . unstake ( [ item . tokenId ] ) . send ( { from : account } ) ;
356
+ vaultcontract . methods . unstake ( [ result . token_id ] ) . send ( { from : account } ) ;
357
357
}
358
358
return (
359
359
< div className = "card nft-card mt-3" key = { i } >
360
360
< div className = "image-over" >
361
- < img className = "card-img-top" src = { nftpng + item . tokenId + '.png' } alt = "" />
361
+ < img className = "card-img-top" src = { nftpng + result . token_id + '.png' } alt = "" />
362
362
</ div >
363
363
< div className = "card-caption col-12 p-0" >
364
364
< div className = "card-body" >
365
- < h5 className = "mb-0" > Net2Dev Collection NFT #{ item . tokenId } </ h5 >
366
- < h5 className = "mb-0 mt-2" > Location Status< p style = { { color : "#39FF14" , fontWeight : "bold" , textShadow : "1px 1px 2px #000000" } } > { item . tokenId } </ p > </ h5 >
365
+ < h5 className = "mb-0" > Net2Dev Collection NFT #{ result . token_id } </ h5 >
366
+ < h5 className = "mb-0 mt-2" > Location Status< p style = { { color : "#39FF14" , fontWeight : "bold" , textShadow : "1px 1px 2px #000000" } } > { result . owner_of } </ p > </ h5 >
367
367
< div className = "card-bottom d-flex justify-content-between" >
368
- < input key = { i } type = "hidden" id = 'stakeid' value = { item . tokenId } />
368
+ < input key = { i } type = "hidden" id = 'stakeid' value = { result . token_id } />
369
369
< Button style = { { marginLeft : '2px' , backgroundColor : "#ffffff10" } } onClick = { stakeit } > Stake it</ Button >
370
370
< Button style = { { marginLeft : '2px' , backgroundColor : "#ffffff10" } } onClick = { unstakeit } > Unstake it</ Button >
371
371
</ div >
0 commit comments