1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +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
parent e39485cb1c
commit c044400a7e

View File

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