Commit 25e0ffca authored by fro's avatar fro
Browse files

fixes #128

parent 114ff2a8
......@@ -60,7 +60,7 @@ export default class AccountIconChooser extends React.PureComponent<{
const seed = await words();
return {
seed,
address: (await brainWalletAddress(seed)).toLowerCase()
address: await brainWalletAddress(seed)
};
})
))
......
......@@ -71,7 +71,7 @@ export default class AccountsStore extends Container<AccountsState> {
if (typeof seed === 'string') {
debounce(async () => {
Object.assign(this.state.newAccount, {
address: (await brainWalletAddress(seed)).toLowerCase()
address: await brainWalletAddress(seed)
});
this.setState({});
}, 200)();
......@@ -112,9 +112,7 @@ export default class AccountsStore extends Container<AccountsState> {
async refreshList() {
loadAccounts().then(res => {
const accounts = new Map(
res.map(a => [accountId(a), { ...a, address: a.address.toLowerCase() }])
);
const accounts = new Map(res.map(a => [accountId(a), a]));
this.setState({ accounts });
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment