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

Function onDiscardAttempt

packages/shared/src/hooks/useAuthForms.ts:46–51  ·  view source on GitHub ↗
(e, forceClose = false)

Source from the content-addressed store, hash-verified

44 };
45
46 const onDiscardAttempt: CloseAuthModalFunc = (e, forceClose = false) => {
47 if (forceClose || !formRef?.current) {
48 return onDiscard(e, forceClose);
49 }
50 return openPrompt(e);
51 };
52
53 return useMemo(
54 () => ({

Callers

nothing calls this directly

Calls 1

openPromptFunction · 0.85

Tested by

no test coverage detected