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

Function onStopBoost

packages/shared/src/features/boost/useStopBoost.ts:87–98  ·  view source on GitHub ↗
(campaign: Campaign)

Source from the content-addressed store, hash-verified

85 };
86
87 const onStopBoost = async (campaign: Campaign) => {
88 if (!(await showPrompt(stopBoostPromptOptions))) {
89 return;
90 }
91
92 // The mutation already shows a toast when it fails
93 const data = await onCancelBoost(campaign).catch(() => null);
94
95 if (data?.transactionId) {
96 clearBoostedFlag(campaign);
97 }
98 };
99
100 return { onStopBoost, isStopping: isLoadingCancel };
101};

Callers

nothing calls this directly

Calls 1

clearBoostedFlagFunction · 0.85

Tested by

no test coverage detected