mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-21 14:48:53 +00:00
fix fetching trade state for SideShift
This commit is contained in:
parent
1efced7607
commit
6988637266
1 changed files with 4 additions and 2 deletions
|
@ -250,8 +250,10 @@ class SideShiftExchangeProvider extends ExchangeProvider {
|
||||||
final deposits = responseJSON['deposits'] as List?;
|
final deposits = responseJSON['deposits'] as List?;
|
||||||
TradeState? state;
|
TradeState? state;
|
||||||
|
|
||||||
if (deposits != null && deposits.isNotEmpty) {
|
if (deposits != null && deposits.isEmpty) {
|
||||||
final status = deposits[0]['status'] as String;
|
state = TradeState.deserialize(raw: 'created');
|
||||||
|
} else {
|
||||||
|
final status = deposits?[0]['status'] as String;
|
||||||
state = TradeState.deserialize(raw: status);
|
state = TradeState.deserialize(raw: status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue