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

Function getQuestStatusLabel

packages/shared/src/components/quest/QuestCard.tsx:133–147  ·  view source on GitHub ↗
(quest: UserQuest)

Source from the content-addressed store, hash-verified

131 );
132
133export const getQuestStatusLabel = (quest: UserQuest): string => {
134 if (quest.status === QuestStatus.Claimed) {
135 return 'Claimed';
136 }
137
138 if (quest.claimable) {
139 return 'Ready to claim';
140 }
141
142 if (quest.status === QuestStatus.Completed) {
143 return quest.locked ? 'Plus required' : 'Completed';
144 }
145
146 return 'In progress';
147};
148
149const QuestRewardChip = ({
150 reward,

Callers 2

MilestoneQuestCardFunction · 0.90
QuestCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected