Skip to content

Fix nok_first prefill to use nextOfKin.firstName in Register.tsx - #924

Merged
iamtanuj18 merged 1 commit into
devfrom
923-fix-nok-first-prefill
Aug 5, 2026
Merged

Fix nok_first prefill to use nextOfKin.firstName in Register.tsx#924
iamtanuj18 merged 1 commit into
devfrom
923-fix-nok-first-prefill

Conversation

@iamtanuj18

Copy link
Copy Markdown

Fixes #923.

One-word fix on line 113 of application/user-client/src/pages/Register.tsx. nok_first (next-of-kin First Name field) was being prefilled from nextOfKin?.lastName. Changed to nextOfKin?.firstName.

Since the fix is at the rendering layer, it uniformly covers every upstream prefill path (CSV import wizard, direct API, RedCap integration).

@ignatiusm ignatiusm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didn't test this locally, but the one-word change looks good to me. Nice catch! Approved 🚀

@iamtanuj18
iamtanuj18 merged commit 11fb0df into dev Aug 5, 2026
6 checks passed
@iamtanuj18
iamtanuj18 deleted the 923-fix-nok-first-prefill branch August 5, 2026 23:50
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