Skip to content

Commit

Permalink
Fix SkinSwap price source
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk committed Nov 24, 2024
1 parent ea7ff4c commit 9483701
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ private async Task UpdateSkinSwapMarketPricesForApp(ILogger logger, SteamApp app
{
stopwatch.Start();


var skinSwapAppItems = new List<SkinSwapItem>();
var skinSwapResponse = (SkinSwapResponse<SkinSwapItem[]>)null;
var offset = 0;
Expand Down Expand Up @@ -100,7 +99,7 @@ private async Task UpdateSkinSwapMarketPricesForApp(ILogger logger, SteamApp app
if (item != null)
{
var supply = skinSwapAppItem.Overstock?.Count;
var price = skinSwapAppItem.Price?.Buy ?? 0;
var price = skinSwapAppItem.Price?.Trade ?? 0;
item.UpdateBuyPrices(SkinSwap, new PriceWithSupply
{
Price = supply > 0 && price > 0 ? item.Currency.CalculateExchange(price, usdCurrency.ExchangeRateMultiplier) : 0,
Expand Down

0 comments on commit 9483701

Please sign in to comment.