diff --git a/electron-app/ecoindex-app/src/main/handlers/HandleCollectAll.ts b/electron-app/ecoindex-app/src/main/handlers/HandleCollectAll.ts index a9da985..fa5e358 100644 --- a/electron-app/ecoindex-app/src/main/handlers/HandleCollectAll.ts +++ b/electron-app/ecoindex-app/src/main/handlers/HandleCollectAll.ts @@ -184,7 +184,7 @@ export const handleSimpleCollect = async ( } catch (error) { showNotification({ subtitle: i18n.t('🚫 Simple collect'), - body: i18n.t(`Collect KO, {{error}}\n`, error), + body: i18n.t(`Collect KO, {{error}}\n`, { error }), }) throw new Error('Simple collect error') } diff --git a/electron-app/ecoindex-app/src/main/handlers/HandleJsonReadAndReload.ts b/electron-app/ecoindex-app/src/main/handlers/HandleJsonReadAndReload.ts index 5baf5cb..704b70c 100644 --- a/electron-app/ecoindex-app/src/main/handlers/HandleJsonReadAndReload.ts +++ b/electron-app/ecoindex-app/src/main/handlers/HandleJsonReadAndReload.ts @@ -53,7 +53,9 @@ export const handleJsonReadAndReload = async ( _debugLogs('ERROR', 'Json file not read and reloaded', error) showNotification({ subtitle: i18n.t('🚫 JSON reload'), - body: i18n.t(`Json file not read and reloaded. {{error}}`, error), + body: i18n.t(`Json file not read and reloaded. {{error}}`, { + error, + }), }) // throw new Error(`Json file not read and reloaded. ${error}`) } diff --git a/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx b/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx index bd2d1d7..ec5e25c 100644 --- a/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx +++ b/electron-app/ecoindex-app/src/renderer/MainWindow/App.tsx @@ -209,7 +209,7 @@ function TheApp() { !confirm( t( `Are you shure to want create report(s) in your default folder?\n\rDestination: {{homeDir}}`, - homeDir + { homeDir } ) ) )