Extract kredits module
This commit is contained in:
@@ -7,7 +7,7 @@ export default Route.extend({
|
||||
beforeModel(transition) {
|
||||
const kredits = this.get('kredits');
|
||||
|
||||
return kredits.initEthProvider().then(() => {
|
||||
return kredits.setup().then(() => {
|
||||
if (kredits.get('accountNeedsUnlock')) {
|
||||
if (confirm('It looks like you have an Ethereum wallet available. Please unlock your account.')) {
|
||||
transition.retry();
|
||||
|
||||
Reference in New Issue
Block a user