From 1aaae711e64cda0b3d2ddf8eb0a9de2c25bc4db1 Mon Sep 17 00:00:00 2001 From: itailiors <78041027+itailiors@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:49:19 +0200 Subject: [PATCH] fix bug and polish --- src/Angor/Client/Pages/View.razor | 178 +++++++++++++--------- src/Angor/Client/Storage/ClientStorage.cs | 162 +++++++++----------- 2 files changed, 176 insertions(+), 164 deletions(-) diff --git a/src/Angor/Client/Pages/View.razor b/src/Angor/Client/Pages/View.razor index 97ef5d18..a0641c04 100644 --- a/src/Angor/Client/Pages/View.razor +++ b/src/Angor/Client/Pages/View.razor @@ -153,11 +153,9 @@ else @if (projectStats.Loading) {
- @project?.CreationTransactionId } else { - @project?.CreationTransactionIdTotal Raised: @Money.Satoshis(projectStats.TotalRaised).ToUnit(MoneyUnit.BTC) @network.CoinTicker
@@ -170,14 +168,19 @@ else- @if (projectStats.TimeLeft > 0) + @{ + var daysLeft = (project.ProjectInfo.StartDate - DateTime.UtcNow).Days; + } + + @if (daysLeft >= 0) { - Time Left for Investing: @projectStats.TimeLeft days + Time Left for Investing: @daysLeft days } else { The investing period is over } +
Seize the opportunity to invest in this project.
+ @{ + var timeLeft = (project.ProjectInfo.StartDate - DateTime.UtcNow).Days; + }