MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / onResetPasswordError

Function onResetPasswordError

src/components/auth/AuthDialog.tsx:250–260  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

248 * @param error
249 */
250 const onResetPasswordError = (error: any) => {
251 logAnalyticsEvent("reset_password_error", { error });
252 const errorCode = error.code;
253 if (errorCode in AuthApiErrors) {
254 setAuthApiErrorMessage(AuthApiErrors[errorCode].message);
255 } else {
256 setAuthApiErrorMessage(
257 "An error occured while logging in. Please try again later.",
258 );
259 }
260 };
261
262 useEffect(() => {
263 resetAuthApiErrorMessage();

Callers

nothing calls this directly

Calls 1

logAnalyticsEventFunction · 0.90

Tested by

no test coverage detected