Fix red leds not showing for failed devices

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-12-14 18:52:08 +01:00
parent 3cde2faed0
commit fc45df270a

View File

@ -193,7 +193,7 @@ function stateObserver(state: typeof DEFAULT_STATE) {
selectedDrivesPaths = s.devicePaths;
}
const failedDevicePaths = s.failedDeviceErrors.map(
([devicePath]: [string]) => devicePath,
([, { devicePath }]: [string, { devicePath: string }]) => devicePath,
);
const newLedsState = {
step,