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

Function leave

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

Source from the content-addressed store, hash-verified

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

Callers 1

PatchyOfferFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected