Merge pull request #94 from 67P/refactor/healthcheck-1

Add Kredits preflight checks
This commit was merged in pull request #94.
This commit is contained in:
2019-04-05 13:01:02 +00:00
committed by GitHub
+4
View File
@@ -8,6 +8,10 @@ export default Route.extend({
const kredits = this.kredits;
return kredits.setup().then(() => {
kredits.get('kredits').preflightChecks().catch((error) => {
console.error('Kredits preflight check failed!');
console.error(error);
});
if (kredits.get('accountNeedsUnlock')) {
if (confirm('It looks like you have an Ethereum wallet available. Please unlock your account.')) {
transition.retry();