Skip to content

Commit

Permalink
runfix: address backward compatibility backup bug [WPB-15317] (#18576)
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Gira authored Jan 13, 2025
1 parent 0c08a3e commit 118af9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/script/components/HistoryImport/HistoryImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 118af9d

Please sign in to comment.