Skip to content

bug: CampaignEmbed crashes on load — onOpenRef variable is undefined #286

Description

@dotunv

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

  1. Navigate to /embed/campaigns/:id
  2. 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

  • /embed/campaigns/:id loads without errors
  • Campaign data and progress bar render correctly in the embed
  • PostMessage height resize still works

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingfrontendFrontend / UI work

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions