From cce13c69ade27cc3f3405e71b20e6a17cb776f1c Mon Sep 17 00:00:00 2001 From: TheXamlGuy Date: Sat, 22 Jun 2024 14:06:54 +0100 Subject: [PATCH] Improve validations --- Wallet/OpenWalletViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Wallet/OpenWalletViewModel.cs b/Wallet/OpenWalletViewModel.cs index abe05a7..01eceda 100644 --- a/Wallet/OpenWalletViewModel.cs +++ b/Wallet/OpenWalletViewModel.cs @@ -35,8 +35,9 @@ public partial class OpenWalletViewModel : Observable { using (await new ActivityLock(this)) { - if (await validation.Validate(() => Password, [new ValidationRule(async () => - await Mediator.Handle>, bool>(Activate.As(new Wallet(Password))), "The password is incorrect, please try again.")])) + if (await Validation.Validate(() => Password, [new ValidationRule(async () => + await Mediator.Handle>, bool>(Activate.As(new Wallet(Password))), + "The password is incorrect, please try again.")])) { Publisher.Publish(Opened.As()); }