Skip to content

DoCurious API Reference / store / selectMyChallengeStats

Function: selectMyChallengeStats() ​

selectMyChallengeStats(state): object

Defined in: store/useChallengeStore.ts:516

Select challenge stats for the current user (counts by status).

Parameters ​

state ​

ChallengeState

Returns ​

object

completed ​

completed: number

declined ​

declined: number

fromOthers ​

fromOthers: number

inProgress ​

inProgress: number

inReview ​

inReview: number

invitations ​

invitations: number

unverified ​

unverified: number

Example ​

ts
const stats = useChallengeStore(selectMyChallengeStats)
// { invitations: 2, inProgress: 5, completed: 12, ... }

DoCurious Platform Documentation