WA-238 Do not update safes in localStorage when updating DailyLimit

This commit is contained in:
apanizo 2018-05-14 09:10:28 +02:00
parent 4a30051858
commit cefa6d5567
1 changed files with 2 additions and 5 deletions

View File

@ -47,9 +47,6 @@ export default handleActions({
saveSafes(safes.toJSON())
return safes
},
[UPDATE_DAILY_LIMIT]: (state: State, action: ActionType<typeof updateDailyLimit>): State => {
const safes = state.updateIn([action.safeAddress, 'dailyLimit'], () => makeDailyLimit(action.dailyLimit))
saveSafes(safes.toJSON())
return safes
},
[UPDATE_DAILY_LIMIT]: (state: State, action: ActionType<typeof updateDailyLimit>): State =>
state.updateIn([action.safeAddress, 'dailyLimit'], () => makeDailyLimit(action.dailyLimit)),
}, Map())