Skip to content

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

@O2sa

Description

@O2sa

The swap and reset buttons in the CompareForm component currently get disabled when the inputs are empty, even if there is data displayed. They should remain enabled if the data prop is true.

Tasks

  • Open components/compare-form.tsx.
  • Update the disabled condition for both the swap and reset buttons to evaluate to (!data && isEmpty) || loading instead of isEmpty || loading.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions