mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
refactor: remove redundant isLocalOnly flag
- Remove isLocalOnly field from Highlight type and creation logic - Use only isOfflineCreated flag for flight mode highlights - Simplify UI logic to check only isOfflineCreated - Both flags were set to the same value, making them redundant - Cleaner, more maintainable code with single source of truth
This commit is contained in:
@@ -307,7 +307,7 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
|
||||
}
|
||||
|
||||
// Check if this highlight was created offline (flight mode)
|
||||
const isOfflineCreated = highlight.isOfflineCreated || highlight.isLocalOnly
|
||||
const isOfflineCreated = highlight.isOfflineCreated
|
||||
|
||||
// Show highlighter icon with relay info if available
|
||||
if (highlight.publishedRelays && highlight.publishedRelays.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user