Skip to content

Commit

Permalink
Change NFT Hash on the basis of Dropdown Selection
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshg6 committed May 7, 2021
1 parent b8ee9c4 commit d193da2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ComponentIndex extends Component {
changeNFTHash(nft) {
const { ethNFT } = this.state;
for (let item of ethNFT) {
if (item.name.replace(/\s+/g, '-').toLowerCase() == nft) {
if (item.name == nft) {
this.setState({ ethHash: item.address })
}
}
Expand Down Expand Up @@ -374,7 +374,7 @@ class ComponentIndex extends Component {
// console.log('NFT Type State Changed to', value)
this.setState({ nftType: value })
this.fetchCarbonCost(this.state.energyType, value)
// this.changeNFTHash(value)
this.changeNFTHash(value)
}}
/>

Expand Down

0 comments on commit d193da2

Please sign in to comment.