[#1181] No and some transactions at the same time
- The no transaction Text as well as ForEach are connected to the same property and view should re-render accordingly. On a theoretical level it might be possible the view re-rendered only a portion of itself. Adding else should hopefully cover even the theoretical/swiftui potential bug.
This commit is contained in:
parent
ff5b6ce0ef
commit
ad1ba0f98f
|
@ -23,18 +23,19 @@ public struct TransactionListView: View {
|
|||
.listRowBackground(Asset.Colors.shade97.color)
|
||||
.listRowSeparator(.hidden)
|
||||
.padding(.top, 30)
|
||||
} else {
|
||||
ForEach(viewStore.transactionList) { transaction in
|
||||
TransactionRowView(
|
||||
viewStore: viewStore,
|
||||
transaction: transaction,
|
||||
tokenName: tokenName,
|
||||
isLatestTransaction: viewStore.isLatestTransaction(id: transaction.id)
|
||||
)
|
||||
.listRowInsets(EdgeInsets())
|
||||
}
|
||||
.listRowBackground(Asset.Colors.shade97.color)
|
||||
.listRowSeparator(.hidden)
|
||||
}
|
||||
ForEach(viewStore.transactionList) { transaction in
|
||||
TransactionRowView(
|
||||
viewStore: viewStore,
|
||||
transaction: transaction,
|
||||
tokenName: tokenName,
|
||||
isLatestTransaction: viewStore.isLatestTransaction(id: transaction.id)
|
||||
)
|
||||
.listRowInsets(EdgeInsets())
|
||||
}
|
||||
.listRowBackground(Asset.Colors.shade97.color)
|
||||
.listRowSeparator(.hidden)
|
||||
}
|
||||
.disabled(viewStore.transactionList.isEmpty)
|
||||
.background(Asset.Colors.shade97.color)
|
||||
|
|
Loading…
Reference in New Issue