From 118af9df1eb1b267345373eebc702806398dafdd Mon Sep 17 00:00:00 2001 From: Virgile <78490891+V-Gira@users.noreply.github.com> Date: Mon, 13 Jan 2025 10:15:15 +0100 Subject: [PATCH] runfix: address backward compatibility backup bug [WPB-15317] (#18576) --- src/script/components/HistoryImport/HistoryImport.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/script/components/HistoryImport/HistoryImport.tsx b/src/script/components/HistoryImport/HistoryImport.tsx index 7be26e1fd1d..8525b18a8a7 100644 --- a/src/script/components/HistoryImport/HistoryImport.tsx +++ b/src/script/components/HistoryImport/HistoryImport.tsx @@ -123,7 +123,11 @@ const HistoryImport = ({user, backupRepository, file, switchContent}: HistoryImp setErrorSecondary(t('backupImportAccountErrorSecondary')); } else if (error instanceof IncompatibleBackupError) { setErrorHeadline(t('backupImportVersionErrorHeadline')); - setErrorSecondary(t('backupImportVersionErrorSecondary', {brandName: Config.getConfig().BRAND_NAME})); + //@ts-expect-error + //the "brandname" should be provided + //the correct syntax is suspected to create issues with electron's console see https://wearezeta.atlassian.net/browse/WPB-15317 + //TODO: figure out the issue with the electron console + setErrorSecondary(t('backupImportVersionErrorSecondary', Config.getConfig().BRAND_NAME)); } else if (error instanceof IncompatibleBackupFormatError) { setErrorHeadline(t('backupImportFormatErrorHeadline')); setErrorSecondary(t('backupImportFormatErrorSecondary'));