From 4f77be1f96ce1c952221141ed1068bf03876e72c Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:02:36 +0900 Subject: [PATCH] REVERT rogue character-typo fixed nullable error --- Core/DataObjects/PTMagicData.cs | 2 +- Monitor/Pages/_get/DashboardTop.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/DataObjects/PTMagicData.cs b/Core/DataObjects/PTMagicData.cs index b6d34fe..3b1a668 100644 --- a/Core/DataObjects/PTMagicData.cs +++ b/Core/DataObjects/PTMagicData.cs @@ -519,7 +519,7 @@ namespace Core.Main.DataObjects.PTMagicData public double AverageBuyPrice { get; set; } public double TotalCost { get; set; } public double CurrentValue { get; set; } - public double TargetGainValue { get; set; } + public double? TargetGainValue { get; set; } public double Amount { get; set; } public double CurrentPrice { get; set; } public double SellTrigger { get; set; } diff --git a/Monitor/Pages/_get/DashboardTop.cshtml b/Monitor/Pages/_get/DashboardTop.cshtml index c0805d1..914f18d 100644 --- a/Monitor/Pages/_get/DashboardTop.cshtml +++ b/Monitor/Pages/_get/DashboardTop.cshtml @@ -221,7 +221,7 @@ @if ( !(sellStrategyText.Contains("WATCHMODE")) && !(sellStrategyText.Contains("PENDING"))) { - double TargetGain = leverageValue * dcaLogEntry.TargetGainValue.Value; + double TargetGain = leverageValue * dcaLogEntry.TargetGainValue.GetValueOrDefault(); @TargetGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))%
@profitPercentage.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %