mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2026-03-18 07:35:54 +00:00
UPDATED API
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user