Skip to content

Conversation

@himaniraghav3
Copy link
Collaborator

Related JIRA Ticket:

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

What's in this PR?

API expects number as end of year


function handleFormValueChange(key: string, event: React.ChangeEvent<HTMLInputElement>): void {

const value = key === 'endYear'

Choose a reason for hiding this comment

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

[⚠️ correctness]
Consider adding validation to ensure event.target.value can be safely converted to a number before using Number(). This will prevent potential issues if the input is not a valid number.

label='End Year or Expected'
error={formErrors.endYear}
name='endYear'
label='End Year or Expected hhhh'

Choose a reason for hiding this comment

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

[💡 readability]
The label 'End Year or Expected hhhh' seems to contain a typo or placeholder text ('hhhh'). Ensure this is intentional or update it to the correct label.

@himaniraghav3 himaniraghav3 merged commit 3f50487 into feat/v6 Oct 23, 2025
3 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.

3 participants