Skip to content

Commit

Permalink
fix: rename reward type
Browse files Browse the repository at this point in the history
  • Loading branch information
staciax committed Jan 10, 2025
1 parent 832c43f commit 91e732c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions valorant/models/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class Reward(BaseUUIDModel):
# useful methods

async def fetch_item(self, *, client: Client) -> RewardItemType | None: # noqa: PLR0911
if self.type is RewardType.skin_level:
if self.type is RewardType.equippable_skin_level:
return await client.fetch_skin_level(str(self.uuid))
if self.type is RewardType.buddy_level:
if self.type is RewardType.equippable_charm_level:
return await client.fetch_buddy_level(str(self.uuid))
if self.type is RewardType.player_card:
return await client.fetch_player_card(str(self.uuid))
Expand Down

0 comments on commit 91e732c

Please sign in to comment.