Fix Discuss this verse functionality and update live counter to static text

- Replace dynamic live counter with static "thousands of believers" text in both languages
- Fix Discuss this verse feature with proper timing and quote escaping
- Add setTimeout delay to ensure chat input is set after component renders
- Remove unescaped quotes from English daily verse text
- Merge duplicate hero translation objects in both language files
- Clean up debug console.log statements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
andupetcu
2025-09-22 10:57:45 +03:00
parent e2c7e21967
commit 73a8b44f76
4 changed files with 11 additions and 8 deletions

View File

@@ -77,7 +77,12 @@ export default function FloatingChat() {
setIsOpen(true)
setIsMinimized(false)
if (typeof detail.fullscreen === 'boolean') setIsFullscreen(detail.fullscreen)
if (typeof detail.initialMessage === 'string') setInputMessage(detail.initialMessage)
if (typeof detail.initialMessage === 'string') {
// Use setTimeout to ensure the input is set after the component is fully rendered
setTimeout(() => {
setInputMessage(detail.initialMessage)
}, 100)
}
}
window.addEventListener('floating-chat:open', handler as EventListener)
return () => window.removeEventListener('floating-chat:open', handler as EventListener)