From 14a722eff606c398ac79f0eac835f765a1fc0bdb Mon Sep 17 00:00:00 2001 From: candela97 <54083835+candela97@users.noreply.github.com> Date: Sat, 13 Apr 2024 20:11:34 +0800 Subject: [PATCH] Don't throw an error if game doesn't have cards --- src/js/Content/Features/Store/App/FBadgeProgress.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Content/Features/Store/App/FBadgeProgress.svelte b/src/js/Content/Features/Store/App/FBadgeProgress.svelte index 8faf654da..86cb9d37e 100644 --- a/src/js/Content/Features/Store/App/FBadgeProgress.svelte +++ b/src/js/Content/Features/Store/App/FBadgeProgress.svelte @@ -25,7 +25,7 @@ // No badge data if game doesn't have cards or not logged in if (!data) { - throw new Error("Failed to find badges data"); + return; } let target = document.querySelector(".rightcol.game_meta_data");