Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Jan 15, 2026

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-3357

What's in this PR?

const [count, incompleteEntries] = useMemo(() => {
const fields = Object.entries(completeness.entries)
.filter(([, value]) => !value)
.filter(([, value]) => value === false || value === null || value === undefined)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[💡 maintainability]
The filter condition value === false || value === null || value === undefined is technically correct, but consider using value == null to check for both null and undefined in a more concise way. This can improve readability and maintainability.

@@ -1,3 +1,4 @@
import { omit } from 'lodash'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ performance]
Consider using a more specific import from lodash, such as import omit from 'lodash/omit', to potentially reduce bundle size if tree-shaking is not fully effective.

@vas3a vas3a merged commit cc66789 into dev Jan 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants