MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / normalizeStatus

Function normalizeStatus

wxapp/ykb_all.js:177–186  ·  view source on GitHub ↗
(status = "")

Source from the content-addressed store, hash-verified

175}
176
177function normalizeStatus(status = "") {
178 const map = {
179 Completed: "Complete",
180 Failed: "Fail",
181 Going: "Going",
182 Complete: "Complete",
183 Fail: "Fail",
184 };
185 return map[status] || status;
186}
187
188function rewardText(rewards = []) {
189 if (!Array.isArray(rewards) || rewards.length === 0) return "";

Callers 1

handleTaskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected