Skip to content

Fix broken Currency Converter app by correcting state handling and API usage - #338

Open
Rayyan-101 wants to merge 1 commit into
hiteshchoudhary:mainfrom
Rayyan-101:fix-currency-converter
Open

Fix broken Currency Converter app by correcting state handling and API usage#338
Rayyan-101 wants to merge 1 commit into
hiteshchoudhary:mainfrom
Rayyan-101:fix-currency-converter

Conversation

@Rayyan-101

Copy link
Copy Markdown

Summary

Fixes multiple issues in the Currency Converter sub-project that caused incorrect currency selection, broken swap behavior, and unreliable conversion.

Changes Made

  • Corrected selectCurrency prop for the target currency input
  • Fixed swap logic using a temporary variable
  • Added guard check before conversion
  • Updated useCurrencyInfo hook implementation
  • Verified application works as expected

Result

  • Currency selection updates correctly
  • Swap button works as intended
  • Conversion is accurate and stable

Fixes #337

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.

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

1 participant