Skip to content

Fix currency selection bug in 06currencyConverter - #336

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

Fix currency selection bug in 06currencyConverter#336
Rayyan-101 wants to merge 1 commit into
hiteshchoudhary:mainfrom
Rayyan-101:fix-currency-select-prop

Conversation

@Rayyan-101

Copy link
Copy Markdown

What this PR does

Fixes an issue in the 06currencyConverter app where changing the target currency did not update the UI correctly.

Issue

The target (“To”) currency selector was incorrectly using the from state, causing both currency selectors to be controlled by the same value. This prevented the selected target currency from updating as expected.

Fix

Updated the selectCurrency prop for the target currency selector to use the correct to state in 06currencyConverter/App.jsx.

Related Issue

Fixes #335

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.

An error in chai-aur-react/06currencyConverter app

1 participant