diff --git a/src/App.js b/src/App.js index 1c75333..d950cea 100644 --- a/src/App.js +++ b/src/App.js @@ -152,7 +152,7 @@ class App extends Component { const isValid = await this.getKeysManager().isVotingActive(votingKey) console.log(isValid) if (isValid) { - // // add loading screen + // add loading screen await this.sendTxToContract() } else { this.setState({ loading: false }) @@ -203,7 +203,7 @@ class App extends Component { } render() { const { netId } = this.props.web3Config - const classNameHiddenIfNotCoreNetwork = netId !== constants.NETID_CORE ? 'display-none' : '' + const classNameHiddenIfNotCoreNetwork = netId !== helpers.netIdByName('core') ? 'display-none' : '' if (!this.isValidVotingKey) { return null diff --git a/src/Footer.js b/src/Footer.js index 6dc923e..29746f4 100644 --- a/src/Footer.js +++ b/src/Footer.js @@ -1,10 +1,10 @@ import React from 'react' import moment from 'moment' import Socials from './Socials' -import { isTestnet } from './helpers' +import { constants } from './constants' const Footer = ({ netId }) => { - const footerClassName = isTestnet(netId) ? 'sokol' : '' + const footerClassName = netId in constants.NETWORKS && constants.NETWORKS[netId].TESTNET ? 'sokol' : '' return (