Update WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs
@@ -53,7 +53,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.HardwareWallets
var window = (Application.Current.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime).MainWindow;
var selected = await ofd.ShowAsync(window, fallBack: true);
- if (selected != null && selected.Any())
+ if (selected is { } && selected.Any())
{
var path = selected.First();
var jsonString = await File.ReadAllTextAsync(path);

Update WalletWasabi.Gui/Tabs/WalletManager/HardwareWallets/ConnectHardwareWalletViewModel.cs

Co-Authored-By: yahiheb <52379387+yahiheb@users.noreply.github.com>