Skip to content

Conversation

rishabhtc
Copy link
Collaborator

No description provided.


if (typeof challenge.track === 'string') {
filters.challengeTrack = challenge.track.toUpperCase().replace(' ', '_')
} else if (challenge.track.track) {
Copy link

Choose a reason for hiding this comment

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

Consider adding a fallback or default value for filters.challengeTrack in case challenge.track is neither a string nor an object with a track property.

if (typeof challenge.type === 'string') {
filters.challengeType = challenge.type
} else if (challenge.type.name) {
filters.challengeType = challenge.type.name
Copy link

Choose a reason for hiding this comment

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

Consider adding a fallback or default value for filters.challengeType in case challenge.type is neither a string nor an object with a name property.

@jmgasper jmgasper closed this Oct 7, 2025
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