Skip to content

Commit

Permalink
Merge pull request #2658 from cozy/fix/Import-success-modal
Browse files Browse the repository at this point in the history
fix: Import success modal
  • Loading branch information
Merkur39 authored Apr 28, 2023
2 parents 28a220c + 0135d34 commit 029e32c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ const ImportContentSuccess = () => {
!isLoadingAppSettings &&
appSettingsConfiguration?.lastImportSuccess?.savedTransactionsCount

const text = savedTransactionsCount ? (
<Typography component="span" className="u-mb-1 u-db u-spacellipsis">
{t('Settings.import.description.success', {
smart_count: savedTransactionsCount
})}
</Typography>
) : null
const text =
savedTransactionsCount != null ? (
<Typography component="span" className="u-mb-1 u-db u-spacellipsis">
{t('Settings.import.description.success', {
smart_count: savedTransactionsCount
})}
</Typography>
) : null

return (
<Empty
Expand Down

0 comments on commit 029e32c

Please sign in to comment.