mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 19:44:12 +00:00
updateSafe action in Load container #75
This commit is contained in:
parent
b0adbb0a49
commit
9a4c54671b
@ -1,12 +1,12 @@
|
|||||||
// @flow
|
// @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 = {
|
export type Actions = {
|
||||||
addSafe: typeof addSafe,
|
updateSafe: typeof updateSafe,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
addSafe,
|
updateSafe,
|
||||||
}
|
}
|
||||||
|
@ -71,6 +71,7 @@ export default handleActions({
|
|||||||
|
|
||||||
const safes = state.set(action.payload.address, safe)
|
const safes = state.set(action.payload.address, safe)
|
||||||
saveSafes(safes.toJSON())
|
saveSafes(safes.toJSON())
|
||||||
|
|
||||||
return safes
|
return safes
|
||||||
},
|
},
|
||||||
}, Map())
|
}, Map())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user