Fix error bar displaying

Summary: The error was getting wiped accidentally if register device didn't have any error. In practice, meaning that the "flipper already running" message only flickered on the screen and then disappeared.

Reviewed By: passy

Differential Revision: D14576768

fbshipit-source-id: 1c7443f8f25ffa6a56f8d4994f3fef53bbb02c6d
This commit is contained in:
John Knox
2019-03-22 06:48:29 -07:00
committed by Facebook Github Bot
parent bf9be74ad2
commit ba0cdf641d
2 changed files with 28 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ export default function reducer(
// select device if none was selected before
selectedDevice,
...selection,
error,
error: error || state.error,
};
}
case 'UNREGISTER_DEVICES': {