Oneline the check
MODIFY
WalletWasabi.Fluent/ViewModels/CoinJoinProfiles/CoinJoinProfilesViewModel.cs
WalletWasabi.Fluent/ViewModels/CoinJoinProfiles/CoinJoinProfilesViewModel.cs
@@ -68,15 +68,12 @@ public partial class CoinJoinProfilesViewModel : DialogViewModelBase<bool>
var dialogResult = await NavigateDialogAsync(dialog, NavigationTarget.CompactDialogScreen);
- if (dialogResult.Result is ManualCoinJoinProfileDialogViewModel.ManualCoinJoinProfileDialogViewModelResult result)
- {
- if (result.Profile != current)
+ if (dialogResult.Result is ManualCoinJoinProfileDialogViewModel.ManualCoinJoinProfileDialogViewModelResult result && result.Profile != current)
{
SelectedProfile = null;
SelectedManualProfile = result.Profile;
}
}
- }
private void OnNext(KeyManager keyManager, bool isNewWallet)
{

Oneline the check