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:
Justin Ehrenhofer 2022-12-12 13:30:40 -06:00 committed by GitHub
commit ab989697ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,13 +31,8 @@ abstract class TradesStoreBase with Store {
void setTrade(Trade trade) => this.trade = trade;
@action
Future<void> updateTradeList() async {
if (trade == null) {
return;
}
trades = tradesSource.values.map((trade) => TradeListItem(
trade: trade!,
Future<void> updateTradeList() async => trades =
tradesSource.values.map((trade) => TradeListItem(
trade: trade,
settingsStore: settingsStore)).toList();
}
}