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

Function leave

packages/shared/src/features/patchy/PatchyOffer.tsx:90–100  ·  view source on GitHub ↗
(
    answer: PatchyOfferAnswer,
    button?: 'primary' | 'secondary',
  )

Source from the content-addressed store, hash-verified

88 }, [box]);
89
90 const leave = (
91 answer: PatchyOfferAnswer,
92 button?: 'primary' | 'secondary',
93 ) => {
94 if (isLeaving) {
95 return;
96 }
97 answerRef.current = { answer, button };
98 setIsLeaving(true);
99 setIsIn(false);
100 };
101
102 useEffect(() => {
103 if (!isLeaving || !answerRef.current) {

Callers 1

PatchyOfferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected