REVERT rogue character-typo fixed nullable error

This commit is contained in:
HojouFotytu 2024-04-10 19:02:36 +09:00
parent ccf41b20de
commit 4f77be1f96
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ namespace Core.Main.DataObjects.PTMagicData
public double AverageBuyPrice { get; set; } public double AverageBuyPrice { get; set; }
public double TotalCost { get; set; } public double TotalCost { get; set; }
public double CurrentValue { get; set; } public double CurrentValue { get; set; }
public double TargetGainValue { get; set; } public double? TargetGainValue { get; set; }
public double Amount { get; set; } public double Amount { get; set; }
public double CurrentPrice { get; set; } public double CurrentPrice { get; set; }
public double SellTrigger { get; set; } public double SellTrigger { get; set; }

View File

@ -221,7 +221,7 @@
@if ( !(sellStrategyText.Contains("WATCHMODE")) && !(sellStrategyText.Contains("PENDING"))) @if ( !(sellStrategyText.Contains("WATCHMODE")) && !(sellStrategyText.Contains("PENDING")))
{ {
double TargetGain = leverageValue * dcaLogEntry.TargetGainValue.Value; double TargetGain = leverageValue * dcaLogEntry.TargetGainValue.GetValueOrDefault();
<td>@TargetGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))% <td>@TargetGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))%
<br> <br>
<div class="text-autocolor" style="font-size: 1.2em; white-space: nowrap;">@profitPercentage.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %</div> <div class="text-autocolor" style="font-size: 1.2em; white-space: nowrap;">@profitPercentage.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) %</div>