remove useless fragment

This commit is contained in:
Kalle (Sendou)
2020-12-18 17:27:33 +02:00
parent bede8e2210
commit bd8ff594d0
2 changed files with 10 additions and 14 deletions

View File

@@ -62,13 +62,11 @@ const UserSelector: React.FC<SingleSelectorProps | MultiSelectorProps> = ({
Option: singleOption,
NoOptionsMessage: () => (
<Center p={4}>
<>
{isTooManyItems() ? (
<Trans>Only {maxMultiCount} users allowed</Trans>
) : (
<Trans>No results with this filter</Trans>
)}
</>
{isTooManyItems() ? (
<Trans>Only {maxMultiCount} users allowed</Trans>
) : (
<Trans>No results with this filter</Trans>
)}
</Center>
),
}}

View File

@@ -74,13 +74,11 @@ const WeaponSelector: React.FC<SingleSelectorProps | MultiSelectorProps> = ({
Option: singleOption,
NoOptionsMessage: () => (
<Center p={4}>
<>
{isTooManyItems() ? (
<Trans>Only {maxMultiCount} weapons allowed</Trans>
) : (
<Trans>No results with this filter</Trans>
)}
</>
{isTooManyItems() ? (
<Trans>Only {maxMultiCount} weapons allowed</Trans>
) : (
<Trans>No results with this filter</Trans>
)}
</Center>
),
}}