Skip to content

Commit

Permalink
Fix non-generic ASF crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Jul 31, 2024
1 parent 55076c5 commit 6f9086c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BoosterManager/Boosters/BoosterPageResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Text.Json;
using System.Text.RegularExpressions;
using AngleSharp.Dom;
using ArchiSteamFarm.Helpers.Json;
using ArchiSteamFarm.Steam;

namespace BoosterManager {
Expand Down Expand Up @@ -39,7 +40,7 @@ internal BoosterPageResponse(Bot bot, IDocument? boosterPage) {

IEnumerable<Steam.BoosterInfo>? enumerableBoosters;
try {
enumerableBoosters = JsonSerializer.Deserialize<IEnumerable<Steam.BoosterInfo>>(info.Value);
enumerableBoosters = info.Value.ToJsonObject<IEnumerable<Steam.BoosterInfo>>();
} catch (JsonException) {
throw;
}
Expand Down

0 comments on commit 6f9086c

Please sign in to comment.