Skip to content

PM-4070 Change completeness text for admin#1503

Merged
himaniraghav3 merged 3 commits intodevfrom
PM-4070
Mar 3, 2026
Merged

PM-4070 Change completeness text for admin#1503
himaniraghav3 merged 3 commits intodevfrom
PM-4070

Conversation

@himaniraghav3
Copy link
Collaborator

Related JIRA Ticket:

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

What's in this PR?

image

interface ProfileCompletenessProps {
profile: UserProfile
authProfile: UserProfile | undefined
isAdminOrTM: boolean
Copy link

Choose a reason for hiding this comment

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

[❗❗ correctness]
The prop name change from canSeeProfileCompleteness to isAdminOrTM alters the semantics of the code. Ensure that all usages of this prop throughout the codebase are updated accordingly, as this could lead to logic errors if any references are missed.

interface ProfileCompletenessProps {
profile: UserProfile
authProfile: UserProfile | undefined
isAdminOrTM?: boolean
Copy link

Choose a reason for hiding this comment

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

[❗❗ correctness]
Changing isAdminOrTM from a required to an optional prop could lead to potential issues if the component logic assumes it is always defined. Ensure that the component handles the case where isAdminOrTM is undefined appropriately, especially in conditional rendering.

@himaniraghav3 himaniraghav3 merged commit 726ed6d into dev Mar 3, 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