From 0dfd5f954defe51e9dff6cf3bc4e5a638f370e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20D=C3=ADaz?= Date: Tue, 10 Dec 2024 18:02:37 -0300 Subject: [PATCH] fix: Count validation for getCountText method (#2335) --- webapp/src/components/AssetTopbar/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/AssetTopbar/utils.ts b/webapp/src/components/AssetTopbar/utils.ts index 01037ea62..581205f11 100644 --- a/webapp/src/components/AssetTopbar/utils.ts +++ b/webapp/src/components/AssetTopbar/utils.ts @@ -2,7 +2,7 @@ import { t } from 'decentraland-dapps/dist/modules/translation/utils' import { MAX_QUERY_SIZE } from '../../modules/vendor/api' export function getCountText(count: number | undefined, search: string | undefined) { - if (count === undefined) { + if (count === undefined || count === null) { return '' } else if (search) { return count > 0