Set genesisHash on toggle (#1778)

This commit is contained in:
Jaco Greeff 2019-10-27 16:48:48 +01:00 committed by GitHub
parent 5542bcb06c
commit e7279751e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,8 @@ function Account ({ address, className, t }: Props): React.ReactElement<Props> {
const account = keyring.getPair(address);
account && keyring.saveAccountMeta(account, { ...account.meta, genesisHash });
setGenesisHash(genesisHash);
};
// FIXME It is a bit heavy-handled switching of being editable here completely

View File

@ -63,6 +63,8 @@ function Address ({ address, className, t }: Props): React.ReactElement<Props> {
const account = keyring.getAddress(address);
account && keyring.saveAddress(address, { ...account.meta, genesisHash });
setGenesisHash(genesisHash);
};
return (