Skip to content

Commit

Permalink
Comment Console Log Statements
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshg6 committed May 7, 2021
1 parent 5b4c659 commit 1e08b92
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ComponentIndex extends Component {
fetch("https://once-hackathon-api.herokuapp.com/get-hash", requestOptions)
.then(response => response.json())
.then(result => {
console.log(result)
// console.log(result)
this.setState({ ethNFT: result.ethNFT })
})
.catch(error => console.log('error', error));
Expand All @@ -116,7 +116,7 @@ class ComponentIndex extends Component {
myHeaders.append('Access-Control-Allow-Credentials', 'true');

const nftName = (nft == 'mypt-nft' ? 'Mypt NFT' : 'Rare NFT');
console.log('Send API For', energy, nftName)
// console.log('Send API For', energy, nftName)

var raw = JSON.stringify({
"energyProfile": this.state.energyType,
Expand All @@ -134,7 +134,7 @@ class ComponentIndex extends Component {
fetch("https://once-hackathon-api.herokuapp.com/carbon-intesity", requestOptions)
.then(response => response.json())
.then(result => {
console.log(result)
// console.log(result)
this.setState({
deployGCO2e: parseFloat(result.deployGCO2e),
mintGCO2e: parseFloat(result.mintGCO2e),
Expand All @@ -161,7 +161,7 @@ class ComponentIndex extends Component {
defaultValue={'worldAverage'}
style={{ width: '500px', marginRight: '25px' }}
onChange={(e, { value }) => {
console.log('Energy Mix Value Changed to', value)
// console.log('Energy Mix Value Changed to', value)
this.setState({ energyType: value })
switch (value) {
case 'worldAverage':
Expand Down Expand Up @@ -304,7 +304,7 @@ class ComponentIndex extends Component {
style={{ marginLeft: '15px', marginRight: '25px', width: '200px' }}
value={this.state.txType}
onChange={(e, { value }) => {
console.log('Tx Type State Changed to', value)
// console.log('Tx Type State Changed to', value)
this.setState({ txType: value })
}}
/>
Expand All @@ -315,7 +315,7 @@ class ComponentIndex extends Component {
style={{ marginRight: '25px' }}
value={this.state.nftType}
onChange={(e, { value }) => {
console.log('NFT Type State Changed to', value)
// console.log('NFT Type State Changed to', value)
this.setState({ nftType: value })
this.fetchCarbonIntensity(this.state.energyType, value)
this.changeNFTHash(value)
Expand Down

0 comments on commit 1e08b92

Please sign in to comment.