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

Function settle

packages/shared/src/components/modals/Prompt.tsx:59–67  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

57 }
58
59 const settle = (callback: () => void) => {
60 if (confirmingPrompt.current !== prompt) {
61 return;
62 }
63
64 confirmingPrompt.current = null;
65 setIsConfirming(false);
66 callback();
67 };
68
69 confirmingPrompt.current = prompt;
70 setIsConfirming(true);

Callers 2

handleSuccessFunction · 0.70
useGetShortUrlFunction · 0.50

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected