From be8af641f6893ab5cd758dd876ac1184ed8189de Mon Sep 17 00:00:00 2001 From: Tom Scheper Date: Mon, 13 Jul 2026 21:30:36 +0200 Subject: [PATCH] Change offset and count checks to undefined Since 0 can be a valid value (and is not the default value for count in this case). --- src/achievement/getAchievementUnlocks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/achievement/getAchievementUnlocks.ts b/src/achievement/getAchievementUnlocks.ts index 34e0141..1db625f 100644 --- a/src/achievement/getAchievementUnlocks.ts +++ b/src/achievement/getAchievementUnlocks.ts @@ -57,11 +57,11 @@ export const getAchievementUnlocks = async ( const queryParams: Record = { a: achievementId }; - if (offset) { + if (offset !== undefined) { queryParams.o = offset; } - if (count) { + if (count !== undefined) { queryParams.c = count; }