From b359ca3a350c7ccc8108e8e4156a236706182d97 Mon Sep 17 00:00:00 2001 From: dangershony Date: Mon, 18 Dec 2023 13:50:16 +0000 Subject: [PATCH] If a user has coins don't let them, get more coins. --- src/Angor/Client/Pages/Wallet.razor | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Angor/Client/Pages/Wallet.razor b/src/Angor/Client/Pages/Wallet.razor index fbf89377..9c10538f 100644 --- a/src/Angor/Client/Pages/Wallet.razor +++ b/src/Angor/Client/Pages/Wallet.razor @@ -669,11 +669,11 @@ private async Task GetTestCoins() { - //if (Money.Satoshis(localAccountInfo.TotalBalance).ToUnit(MoneyUnit.BTC) > 10) - //{ - // notificationComponent.ShowNotificationMessage("you already have coins!"); - // return; - //} + if (Money.Satoshis(localAccountInfo.TotalBalance).ToUnit(MoneyUnit.BTC) > 10) + { + notificationComponent.ShowNotificationMessage("you already have coins!"); + return; + } var operationResult = await notificationComponent.LongOperation(async () => { @@ -695,5 +695,4 @@ notificationComponent.ShowNotificationMessage("Success!"); } } - } \ No newline at end of file