fix(@embark/demo): fix ethereum not available in browser in the demo

This only affected the demo. We somehow put the `enableEthereum()`
call right before the Demo `set` function, so since we now throw
when it's not available, it stopped the `set`. But it was never
needed because demo has `autoEnadble` on, meaning that `enable` is
called at the start.
This commit is contained in:
Jonathan Rainville 2020-01-31 10:40:46 -05:00 committed by Iuri Matias
parent a9807b77f5
commit 39919f264c
1 changed files with 0 additions and 1 deletions

View File

@ -29,7 +29,6 @@ class Blockchain extends React.Component {
async setValue(e) {
e.preventDefault();
await EmbarkJS.enableEthereum();
var value = parseInt(this.state.valueSet, 10);
SimpleStorage.methods.set(value).send();