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

Function toggleTag

packages/shared/src/features/boost/BoostAudience.tsx:527–533  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

525 .slice(0, maxSuggestions);
526
527 const toggleTag = (tag: string) =>
528 onChange({
529 ...value,
530 tags: value.tags.includes(tag)
531 ? value.tags.filter((item) => item !== tag)
532 : [...value.tags, tag],
533 });
534 const toggleCountry = (code: string) =>
535 onChange({
536 ...value,

Callers 1

BoostAudienceFunction · 0.85

Calls 1

onChangeFunction · 0.50

Tested by

no test coverage detected