diff --git a/src/App.js b/src/App.js
index f28618f..86df2f7 100644
--- a/src/App.js
+++ b/src/App.js
@@ -14,7 +14,7 @@ import Loading from './Loading';
function generateElement(msg){
let errorNode = document.createElement("div");
- errorNode.innerHTML = `
+ errorNode.innerHTML = `
${msg}
`;
return errorNode;
@@ -103,9 +103,11 @@ class App extends Component {
console.log(isValid);
if(Number(isValid) !== 1){
this.setState({loading:false});
- const invalidKeyMsg = `The key is not valid initial Key!
- Please make sure you have loaded correct initial key in metamask.
- Your current selected key is ${initialKey}`
+ const invalidKeyMsg = `The key is invalid initial Key
+ or you're connect to incorrect chain!
+ Please make sure you have loaded correct initial key in Metamask.
+
Your current selected key is ${initialKey}
+
Current Network ID is
${this.state.web3Config.netId}`
swal({
icon: 'error',
title: 'Error',
diff --git a/src/getWeb3.js b/src/getWeb3.js
index b8e6a29..2c01a61 100644
--- a/src/getWeb3.js
+++ b/src/getWeb3.js
@@ -1,10 +1,10 @@
let errorMsgNoMetamaskAccount = `You haven't chosen any account in MetaMask.
-Please, choose your initial key in MetaMask and reload the page.
+Please choose your initial key in MetaMask and reload the page.
Check POA Network
wiki for more info.`;
function generateElement(msg){
let errorNode = document.createElement("div");
- errorNode.innerHTML = `
+ errorNode.innerHTML = `
${msg}
`;
return errorNode;
@@ -33,11 +33,11 @@ let getWeb3 = () => {
console.log('This is Core')
break
default:
- netIdName = 'ERROR'
+ netIdName = 'Unknown'
errorMsg = `You aren't connected to POA Network.
- Please, switch on POA plugin and refresh the page.
+ Please switch on Metamask and refresh the page.
Check POA Network
wiki for more info.
- Current Network Id: ${netId}`
+
Current Network ID is
${netId}`
console.log('This is an unknown network.', netId)
}