MCPcopy Create free account
hub / github.com/dailydotdev/apps / getQuestChainLabel

Function getQuestChainLabel

packages/shared/src/graphql/quests.ts:54–57  ·  view source on GitHub ↗
(quest: UserQuest)

Source from the content-addressed store, hash-verified

52}
53
54export const getQuestChainLabel = (quest: UserQuest): string | null =>
55 quest.chainStep && quest.chainLength && quest.chainLength > 1
56 ? `Step ${quest.chainStep}/${quest.chainLength}`
57 : null;
58
59// A claim is only reliably detected by checking both: the API stamps
60// `claimedAt` without always flipping `status` to `claimed`.

Callers 2

CompactQuestRowFunction · 0.90
QuestCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected