mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
Merge pull request #653 from cake-tech/CW-235-Today's-Transactions-disappear-after-restarting-the-app
[CW-235] fix updateTradeList bug
This commit is contained in:
commit
ab989697ab
1 changed files with 4 additions and 9 deletions
|
@ -31,13 +31,8 @@ abstract class TradesStoreBase with Store {
|
||||||
void setTrade(Trade trade) => this.trade = trade;
|
void setTrade(Trade trade) => this.trade = trade;
|
||||||
|
|
||||||
@action
|
@action
|
||||||
Future<void> updateTradeList() async {
|
Future<void> updateTradeList() async => trades =
|
||||||
if (trade == null) {
|
tradesSource.values.map((trade) => TradeListItem(
|
||||||
return;
|
trade: trade,
|
||||||
}
|
settingsStore: settingsStore)).toList();
|
||||||
|
|
||||||
trades = tradesSource.values.map((trade) => TradeListItem(
|
|
||||||
trade: trade!,
|
|
||||||
settingsStore: settingsStore)).toList();
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue