-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
U4X-520: Setting default program enrolled as HIV #214
U4X-520: Setting default program enrolled as HIV #214
Conversation
</div> | ||
); | ||
} | ||
console.info(programEnrolled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jabahum This has been removed in the subsequent commit
const { isLoading, error, enrollments } = usePatientPrograms(patientUuid); | ||
const switcherHeaders = enrollments?.map((item) => item.program.name); | ||
const [programEnrolled, setProgramEnrolled] = useState<programs>('HIV Program'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Daphne210 what happens of the person is only in the TB Program?
Probably consider enrollments[0]
as default & dont show anything if there are no programs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akileng56 This has been fixed in the subsequent commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Daphne210
20240409012148.mp4