From 40dff0381bff7b112d73993e40c36378ea77ffa1 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sun, 14 Nov 2021 20:14:55 -0800 Subject: [PATCH] Fix bug with fraction amount display in crowdfund app (#3098) * Update formatting * Adjust formatting * Adjust formatting * Fix bug with BTC fraction amount display --- .../Views/AppsPublic/ViewCrowdfund.cshtml | 12 ++++---- BTCPayServer/wwwroot/crowdfund/app.js | 28 +++++++++++++++---- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml index a3bb2c46c..2e98cdce2 100644 --- a/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml @@ -65,7 +65,7 @@ {

- @Math.Round(Model.TargetAmount.GetValueOrDefault(0)) @Model.TargetCurrency + @Math.Round(Model.TargetAmount.GetValueOrDefault(0)) @Model.TargetCurrency

@if (Model.ResetEveryAmount > 0 && !Model.NeverReset) { @@ -123,7 +123,7 @@
-

@Math.Round(Model.Info.CurrentAmount + Model.Info.CurrentPendingAmount) @Model.TargetCurrency

+

@Math.Round(Model.Info.CurrentAmount + Model.Info.CurrentPendingAmount, Model.CurrencyData.Divisibility) @Model.TargetCurrency

Raised
    @@ -287,8 +287,8 @@