Repository navigation
fix: handleInitialsFieldClick now returns initialsToInsert instead of initials - #2838
Conversation
… initials Bug #3 from Faultmark scan: the function stored user input in initialsToInsert but returned value: initials (the original null). Changed to value: initialsToInsert so the user's typed initials are actually saved. Signed-off-by: Abdulazez A. <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey there, it looks like you haven't accepted our contributor license agreement yet. In order for us to accept your pull request we ask that you please fill out the CLA: https://documen.so/cla |
Summary
Fixes bug #3 from the Faultmark scan (issue #2829):
handleInitialsFieldClickalways submittednullas the initials value because the return statement usedvalue: initials(the original input parameter, always null after the dialog call) instead ofvalue: initialsToInsert(the user's typed input).Root cause
The function stored the dialog result in
initialsToInsert(line 31) but returnedvalue: initials(line 43) — the original destructured parameter which was always null after the first successful dialog call.Fix
Changed line 43 from
value: initialstovalue: initialsToInsert.Verification
npx tsc --noEmitCloses ... (partially addresses #2829)