From 0135d342f0101c25b52a1d478b0991ffddf98067 Mon Sep 17 00:00:00 2001 From: AlexisG Date: Fri, 28 Apr 2023 08:53:23 +0200 Subject: [PATCH] fix: Import success modal If there are no imported operations, the message must be displayed with the 0 --- .../ImportContents/ImportContentSuccess.jsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ducks/settings/Import/ImportContents/ImportContentSuccess.jsx b/src/ducks/settings/Import/ImportContents/ImportContentSuccess.jsx index 0b4efc9dea..9e74d9a3bf 100644 --- a/src/ducks/settings/Import/ImportContents/ImportContentSuccess.jsx +++ b/src/ducks/settings/Import/ImportContents/ImportContentSuccess.jsx @@ -23,13 +23,14 @@ const ImportContentSuccess = () => { !isLoadingAppSettings && appSettingsConfiguration?.lastImportSuccess?.savedTransactionsCount - const text = savedTransactionsCount ? ( - - {t('Settings.import.description.success', { - smart_count: savedTransactionsCount - })} - - ) : null + const text = + savedTransactionsCount != null ? ( + + {t('Settings.import.description.success', { + smart_count: savedTransactionsCount + })} + + ) : null return (