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

Function getQuestStatusLabel

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

Source from the content-addressed store, hash-verified

140 );
141
142export const getQuestStatusLabel = (quest: UserQuest): string => {
143 if (quest.status === QuestStatus.Claimed) {
144 return 'Claimed';
145 }
146
147 if (quest.claimable) {
148 return 'Ready to claim';
149 }
150
151 if (quest.status === QuestStatus.Completed) {
152 return quest.locked ? 'Plus required' : 'Completed';
153 }
154
155 return 'In progress';
156};
157
158const QuestRewardChip = ({
159 reward,

Callers 2

MilestoneQuestCardFunction · 0.90
QuestCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected