diff --git a/src/lib/backup/backup.ts b/src/lib/backup/backup.ts index aaf6b65d..da4e4f4c 100644 --- a/src/lib/backup/backup.ts +++ b/src/lib/backup/backup.ts @@ -98,7 +98,7 @@ export function restoreFromFile( if (backupDevice === "TWO" || backupDevice === "M4G") backupDevice = "ONE"; let currentDevice = get(serialPort)?.device; - if (currentDevice === "TWO" || backupDevice === "M4G") + if (currentDevice === "TWO" || currentDevice === "M4G") currentDevice = "ONE"; if (backupDevice !== currentDevice) {