Closed ritave closed 6 years ago
This can be detected via
const c: Client;
const user = await c.currentUser();
if (user.ascii == undefined) {
console.log("Unlock your metamask!");
}
I can add an async method to the client that will wait for an account to be unlocked, if necessary.
Verified, works now.
No visible error shows-up for the user, and unlocking account doesn't resolve the issue - the website needs to be refreshed to work again.