mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04: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?;
|
||||
TradeState? state;
|
||||
|
||||
if (deposits != null && deposits.isNotEmpty) {
|
||||
final status = deposits[0]['status'] as String;
|
||||
if (deposits != null && deposits.isEmpty) {
|
||||
state = TradeState.deserialize(raw: 'created');
|
||||
} else {
|
||||
final status = deposits?[0]['status'] as String;
|
||||
state = TradeState.deserialize(raw: status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue