updateSafe action in Load container #75

This commit is contained in:
apanizo 2018-11-13 17:08:41 +01:00
parent b0adbb0a49
commit 9a4c54671b
2 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,12 @@
// @flow
import addSafe from '~/routes/safe/store/actions/addSafe'
import updateSafe from '~/routes/safe/store/actions/updateSafe'
export type AddSafe = typeof addSafe
export type UpdateSafe = typeof updateSafe
export type Actions = {
addSafe: typeof addSafe,
updateSafe: typeof updateSafe,
}
export default {
addSafe,
updateSafe,
}

View File

@ -71,6 +71,7 @@ export default handleActions({
const safes = state.set(action.payload.address, safe)
saveSafes(safes.toJSON())
return safes
},
}, Map())