Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
KarmaKamikaze committed Dec 6, 2021
2 parents e79b00e + 060e000 commit bd77ae7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HotelPriceScout/HotelPriceScout.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions HotelPriceScout/Pages/DashboardPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@
<table class="table table-sm table-borderless noHover shadow bg-white">
@foreach (PriceModel item in _dashboard.PriceList)
{
if (item.Price <= _dashboard.MarketPriceItem.Price*(Convert.ToDecimal(SettingsManager.MarginPicked)/100) &&
item.Price >= _dashboard.MarketPriceItem.Price*(Convert.ToDecimal(SettingsManager.MarginPicked)/100))
if (item.Price <= _dashboard.MarketPriceItem.Price*(1 + Convert.ToDecimal(SettingsManager.MarginPicked)/100) &&
item.Price >= _dashboard.MarketPriceItem.Price*(1 - Convert.ToDecimal(SettingsManager.MarginPicked)/100))
{
<tr>
<td class="col text-right @(item.HotelName == "Average Market Price" ||
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "5.0",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}

0 comments on commit bd77ae7

Please sign in to comment.