Combine two if statements
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
@@ -59,14 +59,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
})
.DisposeWith(Disposables);
- // If hardware wallet then we need the Send tab.
- if (Wallet.KeyManager.IsHardwareWallet is true)
- {
- SendTab = new SendTabViewModel(Wallet);
- Actions.Add(SendTab);
- }
- // If not hardware wallet, but neither watch only then we also need the send tab.
- else if (Wallet.KeyManager.IsWatchOnly is false)
+ // If hardware wallet or not watch only wallet then we need the Send tab.
+ if (Wallet.KeyManager.IsHardwareWallet || !Wallet.KeyManager.IsWatchOnly)
{
SendTab = new SendTabViewModel(Wallet);
Actions.Add(SendTab);

Combine two if statements