tylermwatts / CurrencyExchange

Foriegn Currency Converter
0 stars 0 forks source link

Requesting the same currency type for Initial and Return results in a 400 request error #10

Closed tylermwatts closed 5 years ago

tylermwatts commented 5 years ago

When getting the latest or historical exchange rates, selecting the same currency type for "initial currency" and "return currency" results in a 400 request error.

My thinking is to integrate some kind of dynamic disabling/hiding of duplicate options based on which currency is selected in the other dropdown menu.

The other option is to just omit the return type from the API call if it's the same as the initial type, and return the amount given by the user. This isn't quite as useful to the user, but is easier to code (ha!)