mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-18 16:55:58 +00:00
Merge pull request #10 from cake-tech/fix-fiat-price-fetching
Fixed parsing of fiat price
This commit is contained in:
commit
70de05cb4b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ Future<double> fetchPriceFor({CryptoCurrency crypto, FiatCurrency fiat}) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
||||||
final data = responseJSON['data'] as List<Map<String, dynamic>>;
|
final data = responseJSON['data'] as List<dynamic>;
|
||||||
|
|
||||||
for (final item in data) {
|
for (final item in data) {
|
||||||
if (item['symbol'] == cryptoToString(crypto)) {
|
if (item['symbol'] == cryptoToString(crypto)) {
|
||||||
|
|
Loading…
Reference in a new issue