UPDATED API

This commit is contained in:
2023-02-08 12:37:46 +00:00
parent 1574f409f9
commit ec1e3a704e
3 changed files with 25 additions and 32 deletions

View File

@@ -33,10 +33,8 @@ class RepositoryImpl extends Repository with SafeApiCall {
String from = fromCurrency.getCurrencyCode();
String to = toCurrency.getCurrencyCode();
String currency = "${from}_$to";
try {
ResponseObject responseObject = await getDataFromApiCall(_api.getConversion(currency));
ResponseObject responseObject = await getDataFromApiCall(_api.getConversion(from, to));
return responseObject.convert();
} on HttpException catch(error) {
logger.e(error);