Forget actually returns (#5)

This commit is contained in:
Jaco Greeff 2019-05-20 16:25:31 +02:00 committed by GitHub
parent 93b135d685
commit e730d4e7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,10 @@ function Forget (props: Props) {
const _onClick = (): void => {
forgetAccount(address)
.then(onAction)
.then(() => {
onAction();
window.location.hash = '/';
})
.catch(console.error);
};