0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Removed unnecessary check

refs https://github.com/TryGhost/Product/issues/3941
This commit is contained in:
Djordje Vlaisavljevic 2023-09-25 15:22:36 +01:00
parent 21bdd38b37
commit 9b1be9dda7

View file

@ -69,7 +69,7 @@ function TabView<ID extends string = string>({
onClick={handleTabChange}
>
{tab.title}
{((typeof tab.counter === 'number' && tab.counter !== null)) && <span className='ml-1.5 rounded-full bg-grey-200 px-1.5 py-[2px] text-xs font-normal text-grey-800 dark:bg-grey-900 dark:text-grey-300'>{tab.counter}</span>}
{(typeof tab.counter === 'number') && <span className='ml-1.5 rounded-full bg-grey-200 px-1.5 py-[2px] text-xs font-normal text-grey-800 dark:bg-grey-900 dark:text-grey-300'>{tab.counter}</span>}
</button>
</div>
))}