Fixed parsing of fiat price
M committed
Jan 10, 2020 at 18:11 UTC
8538144c2e50530ff94d0038cd34d01d20ad580f
1 file changed
+1
-1
lib/src/domain/common/fetch_price.dart
+1
-1
@@ -21,7 +21,7 @@ Future<double> fetchPriceFor({CryptoCurrency crypto, FiatCurrency fiat}) async {
21
}
22
23
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
24
- final data = responseJSON['data'] as List<Map<String, dynamic>>;
24
+ final data = responseJSON['data'] as List<dynamic>;
25
26
for (final item in data) {
27
if (item['symbol'] == cryptoToString(crypto)) {