fix: fixes error screen not being shown bug#63
Conversation
|
WalkthroughThe 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/react-native/src/components/survey-web-view.tsx`:
- Around line 371-382: Add a small Vitest unit test that asserts renderHtml(...)
(or the function that returns the WebView HTML used by loadSurvey) includes both
injected callback placeholders for getSetIsResponseSendingFinished and
getSetIsError so they can't be dropped by accident; specifically call renderHtml
or the helper that produces the HTML used by loadSurvey, then assert the
returned string contains the expected identifiers (e.g.,
"getSetIsResponseSendingFinished" and "getSetIsError" or their exact placeholder
signatures) and any surrounding call/assignment pattern your runtime expects,
failing the test if either is missing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: d9f4f1ba-db34-4f1b-9614-6e055c06267a
📒 Files selected for processing (1)
packages/react-native/src/components/survey-web-view.tsx



fixes https://linear.app/formbricks/issue/ENG-1011/