MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / handleClaim

Function handleClaim

client/src/components/settings/certification.tsx:87–93  ·  view source on GitHub ↗
(certSlug: Certification)

Source from the content-addressed store, hash-verified

85
86 const handleClaim =
87 (certSlug: Certification) => (e: MouseEvent<HTMLButtonElement>) => {
88 e.preventDefault();
89
90 return isHonest
91 ? verifyCert(certSlug)
92 : createFlashMessage(honestyInfoMessage);
93 };
94
95 return (
96 <Element name={`cert-${certSlug}`}>

Callers 1

LegacyFullStackFunction · 0.85

Calls 1

createFlashMessageFunction · 0.90

Tested by

no test coverage detected