Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
fix not returning farming contest position if you're #1
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Apr 9, 2022
1 parent 5bcb606 commit 09277fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cleaners/skyblock/farmingContents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function cleanFarmingContests(data: typedHypixelApi.SkyBlockProfileMember
item: cleanItemId(item),
amount: contestData.collected,
// the api returns the position 0-indexed, so we add 1
position: contestData.claimed_position ? contestData.claimed_position + 1 : null,
position: contestData.claimed_position !== undefined ? contestData.claimed_position + 1 : null,
claimed: contestData.claimed_rewards ?? null,
participants: contestData.claimed_participants ?? null
}
Expand Down

0 comments on commit 09277fc

Please sign in to comment.