Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 27, 2025

challenge.type === 'Task'
? challenge.name
: `${challenge.name} - ${placeToOrdinal(winner.placement)} Place`,
: `${challenge.name} - ${type === WinningsCategory.CONTEST_CHECKPOINT_PAYMENT ? 'Checkpoint ' : ''}${placeToOrdinal(winner.placement)} Place`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The variable type is used here without being declared or initialized in the visible context. Ensure that type is correctly defined and available in this scope to avoid potential runtime errors.

amount: copilotPrizes[0].value,
userId: copilot.memberId.toString(),
type: WinningsCategory.COPILOT_PAYMENT,
description: `${challenge.name} - Copilot payment`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ security]
Consider sanitizing challenge.name to prevent potential injection attacks if this value is used in contexts that could be vulnerable to such attacks.

@vas3a vas3a merged commit e97e88c into v6 Oct 27, 2025
1 check passed
@vas3a vas3a deleted the PM-2596_prizes-description branch October 27, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants