Description
CampaignEmbed.jsx line 91 references onOpenRef which is never declared in the component. This causes a ReferenceError when the embed page loads, breaking the embeddable campaign widget for all external sites using it.
Steps to Reproduce
- Navigate to
/embed/campaigns/:id
- Page throws ReferenceError: onOpenRef is not defined
Fix
Either declare const onOpenRef = useRef(null) in the component, or replace onOpenRef with the correct ref/handler that was intended.
Acceptance Criteria
Description
CampaignEmbed.jsxline 91 referencesonOpenRefwhich is never declared in the component. This causes a ReferenceError when the embed page loads, breaking the embeddable campaign widget for all external sites using it.Steps to Reproduce
/embed/campaigns/:idFix
Either declare
const onOpenRef = useRef(null)in the component, or replaceonOpenRefwith the correct ref/handler that was intended.Acceptance Criteria
/embed/campaigns/:idloads without errors