diff --git a/src/Angor/Client/Pages/Wallet.razor b/src/Angor/Client/Pages/Wallet.razor index 9651060e..bb504c8c 100644 --- a/src/Angor/Client/Pages/Wallet.razor +++ b/src/Angor/Client/Pages/Wallet.razor @@ -180,9 +180,9 @@
@accountBalanceInfo.AccountInfo.GetNextReceiveAddress()
+@accountBalanceInfo.AccountInfo.GetNextReceiveAddress()
@Money.Satoshis(infoSendUtxo.Value.UtxoData.value).ToUnit(MoneyUnit.BTC) @network.CoinTicker - @infoSendUtxo.Key
} @@ -606,6 +610,16 @@ { var operationResult = await notificationComponent.LongOperation(async () => { + if (string.IsNullOrEmpty(_sendInfo.SendToAddress)) + { + return new OperationResult { Success = false, Message = "Specify a send to address" }; + } + + if (_sendInfo.SendAmount == 0) + { + return new OperationResult { Success = false, Message = "Specify an amount" }; + } + var accountInfo = storage.GetAccountInfo(network.Name); await _walletOperations.UpdateAccountInfoWithNewAddressesAsync(accountInfo);