Skip to content

Commit

Permalink
fix: Count validation for getCountText method
Browse files Browse the repository at this point in the history
  • Loading branch information
cyaiox committed Dec 10, 2024
1 parent f170f3a commit 4bb574a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/AssetTopbar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bb574a

Please sign in to comment.