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

Function toggleCountry

packages/shared/src/features/boost/BoostAudience.tsx:534–540  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

532 : [...value.tags, tag],
533 });
534 const toggleCountry = (code: string) =>
535 onChange({
536 ...value,
537 countries: value.countries.includes(code)
538 ? value.countries.filter((item) => item !== code)
539 : [...value.countries, code],
540 });
541
542 const locationSummary = (() => {
543 if (value.location === BoostLocation.TopMarkets) {

Callers 1

BoostAudienceFunction · 0.85

Calls 1

onChangeFunction · 0.50

Tested by

no test coverage detected