cosmetics

This commit is contained in:
nikk gitanes
2024-04-07 06:53:04 +03:00
parent 4ad4137ddd
commit 6359aee692
2 changed files with 2 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ export default function RightSideComponent({
>
{category.length > 1 && catIndex < 0 ? (
<MenuItem key={category} value={category}>
{t(category)}
{category}
</MenuItem>
) : (
''

View File

@@ -140,7 +140,7 @@ export const CategoryWidget = ({ data }) => {
return (
<StatisticsField
title={t('Category')}
value={catIndex >= 0 ? t(catArray.name) : data}
value={catIndex >= 0 ? t(catArray.name) : data.length > 1 ? data.charAt(0).toUpperCase() + data.slice(1) : data}
iconBg={iconBGColor}
valueBg={valueBGColor}
icon={CategoryIcon}