Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(newAddress: Address | null): void => {
// eslint-disable-next-line no-console
console.log(`new account: ${newAddress}`);
this.props.setCurrentAccount(newAddress);
if (newAddress) {
cacheWeb3Info(newAddress);
} else {
uncacheWeb3Info();
gotoReadonly(this.props.showNotification);
}
});
}
public handleClickLogout = async (_event: any): Promise => {
await gotoReadonly(this.props.showNotification);
}