mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Cast rateId as optional String for calculateAmount for ChangeNow api. (#612)
This commit is contained in:
parent
b6a6bf88ba
commit
d99aac9d98
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
|
|||
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
||||
final fromAmount = double.parse(responseJSON['fromAmount'].toString());
|
||||
final toAmount = double.parse(responseJSON['toAmount'].toString());
|
||||
final rateId = responseJSON['rateId'] as String ?? '';
|
||||
final rateId = responseJSON['rateId'] as String? ?? '';
|
||||
|
||||
if (rateId.isNotEmpty) {
|
||||
_lastUsedRateId = rateId;
|
||||
|
|
Loading…
Reference in a new issue