Commit b32ab715 authored by Marek Kotewicz's avatar Marek Kotewicz Committed by GitHub
Browse files

Merge pull request #52 from paritytech/pin

Fixing pin for new accounts.
parents 6a19ce67 c5b1a941
......@@ -39,13 +39,17 @@ const initialAccounts = {
export default function accounts (state = initialAccounts, action) {
switch (action.type) {
case ADD_ACCOUNT:
saveAccount(action.account)
const account = action.account
account.pin = account.newPin
delete account.newPin
saveAccount(account)
return {
...state,
all: [
...state.all,
action.account
account
]
}
......
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