Closed varasev closed 5 years ago
@vbaranov Done. This PR does the next things:
onNewBallotRender
function: https://github.com/poanetwork/poa-dapps-voting/pull/177/files#diff-14b1e33d5bf5649597cdc0e4f684daddR70netId
)isTestnet
function into helpers.js
(Mandatory) Description Solves https://github.com/poanetwork/poa-dapps-voting/issues/156. Now, DApp will display the alert
You haven't chosen any account in MetaMask...
on clickingNew Ballot
button if MetaMask is locked. Also, this PR refactors some code defining netId for different networks. Should be merged after https://github.com/poanetwork/poa-dapps-voting/pull/176 is merged.(Mandatory) What is it: (Fix), (Feature), or (Refactor) (Fix)