Skip to content

Fix swap and reset buttons being disabled when data is present#118

Open
BhathiyaVicum wants to merge 5 commits intoO2sa:mainfrom
BhathiyaVicum:main
Open

Fix swap and reset buttons being disabled when data is present#118
BhathiyaVicum wants to merge 5 commits intoO2sa:mainfrom
BhathiyaVicum:main

Conversation

@BhathiyaVicum
Copy link
Copy Markdown
Contributor

Fixes #114

Summary

The swap and reset buttons were being disabled when both input fields were empty, even if comparison data was already displayed. This prevented users from interacting with the existing results.

This PR updates the disabled condition to ensure the buttons remain enabled when data is present.

Changes

  • Updated disabled condition for swap button
  • Updated disabled condition for reset button
  • New condition: (!data && isEmpty) || loading

Checklist

  • Correct logic applied as per issue
  • No UI breaking changes
  • Behavior verified manually

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

@BhathiyaVicum is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

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.

fix: Do not disable swap and reset buttons when data is present

1 participant