fix Out Of Range ex
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
@@ -14,7 +14,7 @@ public class CoinJoinsHistoryItemViewModel : HistoryItemViewModelBase
: base(orderIndex, firstItem)
{
CoinJoinTransactions = new List<TransactionSummary>();
- Label = new List<string> { "Coinjoins" };
+ Label = "Coinjoins";
FilteredLabel = new List<string>();
IsCoinJoin = true;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/HistoryItemViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/HistoryItemViewModelBase.cs
@@ -34,7 +34,7 @@ public abstract partial class HistoryItemViewModelBase : ViewModelBase
public List<string>? FilteredLabel { get; protected set; }
- public List<string>? Label { get; protected set; }
+ public string? Label { get; protected set; }
public bool IsCoinJoin { get; protected set; }

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
@@ -18,7 +18,7 @@ public class TransactionHistoryItemViewModel : HistoryItemViewModelBase
IObservable<Unit> updateTrigger)
: base(orderIndex, transactionSummary)
{
- Label = transactionSummary.Label.Take(1).ToList();
+ Label = transactionSummary.Label.Take(1).FirstOrDefault();
FilteredLabel = transactionSummary.Label.Skip(1).ToList();
IsConfirmed = transactionSummary.IsConfirmed();
Date = transactionSummary.DateTime.ToLocalTime();

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
DockPanel.Dock="Left"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
- IsVisible="{Binding !!Label.Count}"
+ IsVisible="{Binding !!Label}"
IsHitTestVisible="False"
Margin="0 4 4 0">
- <TextBlock Text="{Binding Label[0], FallbackValue=''}"
+ <TextBlock Text="{Binding Label}"
MaxWidth="120"
TextTrimming="CharacterEllipsis" />
</Button>
<TextBlock Classes="h5 bold"
VerticalAlignment="Center"
HorizontalAlignment="Center"
- Opacity="{StaticResource HistoryTablePlaceholderTextOpacity}">Nothing to see here yet.</TextBlock>
+ Opacity="{StaticResource HistoryTablePlaceholderTextOpacity}">
+ Nothing to see here yet.
+ </TextBlock>
</Panel>
</Panel>

fix Out Of Range ex