Currency Converter project is broken due to incorrect state handling and API hook usage

Author: Rayyan-101Created Feb 8, 2026Updated Feb 8, 2026

Bug Description

The Currency Converter project is not functioning correctly.
Changing currencies does not update the UI properly, swap behavior is inconsistent, and conversion fails.

Location

06Currency Converter

Current Behavior

  • Target currency selection does not update correctly
  • Swap button does not properly exchange values
  • Conversion may fail due to invalid API response handling

Expected Behavior

  • Changing "From" and "To" currency updates UI correctly
  • Swap button exchanges currencies and amounts properly
  • Conversion works reliably based on selected currency

Source: hiteshchoudhary/chai-aur-react