MCPcopy Create free account
hub / github.com/codelitdev/courselit / getUserDataError

Function getUserDataError

packages/app/components/UserDetails.js:101–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 };
100
101 const getUserDataError = () => {
102 if (
103 (newUserData.password || newUserData.confirmPassword) &&
104 newUserData.password !== newUserData.confirmPassword
105 ) {
106 return ERR_PASSWORDS_DONT_MATCH;
107 }
108
109 return "";
110 };
111
112 const toggleExpandedState = () => {
113 setExpanded(!expanded);

Callers 2

UserDetails.jsFile · 0.85
saveUserChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected