fix copy command nullable
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/CoinJoinDetailsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/CoinJoinDetailsViewModel.cs
@@ -20,7 +20,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
[AutoNotify] private string _date = "";
[AutoNotify] private string _status = "";
[AutoNotify] private Money? _coinJoinFee;
- [AutoNotify] private string _transactionIdString = "";
[AutoNotify] private ObservableCollection<uint256>? _transactionIds;
public CoinJoinDetailsViewModel(CoinJoinsHistoryItemViewModel coinJoinGroup)
@@ -30,13 +29,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
SetupCancel(enableCancel: false, enableCancelOnEscape: true, enableCancelOnPressed: true);
NextCommand = CancelCommand;
- CopyCommand = ReactiveCommand.CreateFromTask<object>(async obj =>
- {
- if (obj.ToString() is { } text)
- {
- await Application.Current.Clipboard.SetTextAsync(text);
- }
- });
+ CopyCommand = ReactiveCommand.CreateFromTask<uint256>(async txid =>
+ await Application.Current.Clipboard.SetTextAsync(txid.ToString()));
Update();
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/CoinJoinDetailsView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/CoinJoinDetailsView.axaml
<!-- Transaction IDs -->
<c:PreviewItem Icon="{StaticResource transaction_id}"
- Text="Transaction ID"
- CopyParameter="{Binding TransactionIdString}">
+ Text="Transaction ID">
<ItemsRepeater Items="{Binding TransactionIds}">
<ItemsRepeater.ItemTemplate>
<DataTemplate>

fix copy command nullable