diff --git a/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts b/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts index 4a18e05330..ce1b904463 100644 --- a/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts +++ b/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts @@ -66,14 +66,15 @@ export default function useDonationFormPubSub() { const publishSettings = (data: RequireAtLeastOne) => { publish(PREVIEW_EVENTS.SETTINGS, data, iframeRef) - }; + } + const publishGoal = (data: RequireAtLeastOne) => { publish(PREVIEW_EVENTS.GOAL, data, iframeRef) - }; + } const publishColors = (data: RequireAtLeastOne) => { publish(PREVIEW_EVENTS.COLORS, data, iframeRef) - }; + } const subscribeToSettings = (callback: (data: FormSettings) => void) => { subscribe(PREVIEW_EVENTS.SETTINGS, callback) @@ -82,6 +83,7 @@ export default function useDonationFormPubSub() { const subscribeToGoal = (callback: (data: FormGoal) => void) => { subscribe(PREVIEW_EVENTS.GOAL, callback) } + const subscribeToColors = (callback: (data: FormColors) => void) => { subscribe(PREVIEW_EVENTS.COLORS, callback) }