Fix insights photo library bug
This commit is contained in:
parent
704df818f1
commit
581bd55d70
@ -435,19 +435,19 @@ export default function AdminAppInsightsClient({
|
||||
content={pluralize(camerasCount, 'camera')}
|
||||
/>;
|
||||
case 'recipes':
|
||||
if (recipesCount > 0) {
|
||||
return <ScoreCardRow
|
||||
return recipesCount > 0
|
||||
? <ScoreCardRow
|
||||
key={category}
|
||||
icon={<TbChecklist
|
||||
size={18}
|
||||
className="translate-y-[-0.5px]"
|
||||
/>}
|
||||
content={pluralize(recipesCount, 'recipe')}
|
||||
/>;
|
||||
}
|
||||
/>
|
||||
: null;
|
||||
case 'films':
|
||||
if (filmSimulationsCount > 0) {
|
||||
return <ScoreCardRow
|
||||
return filmSimulationsCount > 0
|
||||
? <ScoreCardRow
|
||||
key={category}
|
||||
icon={<span className="inline-flex w-3">
|
||||
<PhotoFilmSimulationIcon
|
||||
@ -456,8 +456,8 @@ export default function AdminAppInsightsClient({
|
||||
/>
|
||||
</span>}
|
||||
content={pluralize(filmSimulationsCount, 'film simulation')}
|
||||
/>;
|
||||
}
|
||||
/>
|
||||
: null;
|
||||
}
|
||||
})}
|
||||
<ScoreCardRow
|
||||
|
||||
Loading…
Reference in New Issue
Block a user