1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Don't overwrite state when setting inactive timeout

Using `#putState` here was clearing the other fields in the store.
This commit is contained in:
Whymarrh Whitby 2019-11-26 17:14:29 -03:30 committed by Mark Stacey
parent c6259f6eb5
commit 9e6d401c2f

View File

@ -45,7 +45,7 @@ class AppStateController {
* @private
*/
_setInactiveTimeout (timeoutMinutes) {
this.store.putState({
this.store.updateState({
timeoutMinutes,
})