Skip to content

♻️ Refactor the input value get logic#58

Merged
balajis-qb merged 3 commits into
mainfrom
refactor/date-input-value
Aug 12, 2025
Merged

♻️ Refactor the input value get logic#58
balajis-qb merged 3 commits into
mainfrom
refactor/date-input-value

Conversation

@balajis-qb

Copy link
Copy Markdown
Collaborator

Description

This PR is not about any new features or bug fixes. It is about refactoring the code to make it more readable and maintainable.

Changes

  • I have moved the input value get logic to a separate function
  • Refactored the nested conditional statements to if else conditions for readability.

Screenshots

Old Code
image

New Code
image

I didn't change anything in the get logic, instead just refactored the existing logic to a readable format.

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

- Move the input value get logic to a seperate function
- Refactor the nested conditional statements to if else conditions for readability
@balajis-qb
balajis-qb force-pushed the refactor/date-input-value branch from 9e3be9e to 66df4dc Compare July 21, 2025 12:17
@balajis-qb
balajis-qb merged commit a186869 into main Aug 12, 2025
4 of 5 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.

1 participant