diff --git a/BTCPayServer.Client/BTCPayServer.Client.csproj b/BTCPayServer.Client/BTCPayServer.Client.csproj index 9a475304f..d75a89557 100644 --- a/BTCPayServer.Client/BTCPayServer.Client.csproj +++ b/BTCPayServer.Client/BTCPayServer.Client.csproj @@ -27,7 +27,7 @@ - + diff --git a/BTCPayServer.Rating/BTCPayServer.Rating.csproj b/BTCPayServer.Rating/BTCPayServer.Rating.csproj index 55038beb2..ebae1c750 100644 --- a/BTCPayServer.Rating/BTCPayServer.Rating.csproj +++ b/BTCPayServer.Rating/BTCPayServer.Rating.csproj @@ -6,7 +6,7 @@ - + diff --git a/BTCPayServer/Controllers/WalletsController.cs b/BTCPayServer/Controllers/WalletsController.cs index f01ab2d0d..557465bde 100644 --- a/BTCPayServer/Controllers/WalletsController.cs +++ b/BTCPayServer/Controllers/WalletsController.cs @@ -1063,7 +1063,8 @@ namespace BTCPayServer.Controllers using CancellationTokenSource cts = new CancellationTokenSource(TimeSpan.FromSeconds(10)); try { - return (await wallet.GetBalance(derivationStrategy, cts.Token)).Total.ShowMoney(wallet.Network); + var b = await wallet.GetBalance(derivationStrategy, cts.Token); + return (b.Available ?? b.Total).ShowMoney(wallet.Network); } catch { diff --git a/BTCPayServer/Views/Wallets/WalletSend.cshtml b/BTCPayServer/Views/Wallets/WalletSend.cshtml index c3d1c8d23..29070c190 100644 --- a/BTCPayServer/Views/Wallets/WalletSend.cshtml +++ b/BTCPayServer/Views/Wallets/WalletSend.cshtml @@ -1,4 +1,4 @@ -@addTagHelper *, BundlerMinifier.TagHelpers +@addTagHelper *, BundlerMinifier.TagHelpers @using Microsoft.AspNetCore.Mvc.ModelBinding @model WalletSendModel @{ @@ -82,9 +82,9 @@

Your available balance is @Model.CryptoCode. - @if (Model.ImmatureBalance>0) + @if (Model.ImmatureBalance > 0) { -
Note: @Model.ImmatureBalance @Model.CryptoCode are still immature and require additional confirmations.
+
@Model.ImmatureBalance @Model.CryptoCode are still immature and require additional confirmations.
}