From 5f0bc45851196a3da3e0d135eb5b5654805cabfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Wed, 22 Oct 2025 16:59:41 +0200 Subject: [PATCH] fix: issue with importing M4G backups --- src/lib/backup/backup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {