Skip to content

Commit

Permalink
If a user has coins don't let them, get more coins.
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Dec 18, 2023
1 parent 83d5959 commit b359ca3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Angor/Client/Pages/Wallet.razor
Original file line number Diff line number Diff line change
Expand Up @@ -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 () =>
{
Expand All @@ -695,5 +695,4 @@
notificationComponent.ShowNotificationMessage("Success!");
}
}

}

0 comments on commit b359ca3

Please sign in to comment.