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

Function onUndoToast

packages/shared/src/hooks/post/useBlockPostPanel.ts:243–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 const sourcePreferenceChanged =
242 (blockedSource ?? false) !== shouldBlockSource;
243 const onUndoToast = () => {
244 onUndo(
245 blocks,
246 sourcePreferenceChanged ? !shouldBlockSource : undefined,
247 );
248 };
249
250 if (blocks.length || sourcePreferenceChanged) {
251 displayToast(

Callers

nothing calls this directly

Calls 1

onUndoFunction · 0.50

Tested by

no test coverage detected