Closed memoyil closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 3, 2024 10:44am |
Latest commit: 9ceff81d42ccbd708a60877e8495ac4e2f461760
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Current behaviour is misleading that it sets it to user ttl on every digit removal
PR-Codex overview
This PR focuses on improving error handling for the
deadlineInput
state in theSlippageTabs
component. It introduces the use ofuseEffect
to manage thedeadlineError
state and enhances input validation.Detailed summary
useEffect
to managedeadlineError
based ondeadlineInput
anddeadlineInputIsValid
.deadlineError
withsetDeadlineError
.onChange
handler to validate input before settingdeadlineInput
.onClick
handler to resetdeadlineInput
before parsing the default deadline.