mirror of
https://github.com/dergigi/boris.git
synced 2026-01-03 06:54:53 +01:00
fix: plane icon now shows for offline-created highlights
- Add useEffect to watch highlight.isOfflineCreated prop changes - State now updates when prop changes (not just on initial mount) - Add isOfflineCreated to console log for easier debugging - Fixes issue where plane icon wouldn't appear for new offline highlights The bug was that showOfflineIndicator state was only set once during component initialization. If the highlight prop didn't have isOfflineCreated set at that moment, the icon would never appear even if the prop changed later.
This commit is contained in:
@@ -73,6 +73,7 @@ export const useHighlightCreation = ({
|
||||
console.log('✅ Highlight created successfully!', {
|
||||
id: newHighlight.id,
|
||||
isLocalOnly: newHighlight.isLocalOnly,
|
||||
isOfflineCreated: newHighlight.isOfflineCreated,
|
||||
publishedRelays: newHighlight.publishedRelays
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user