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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user