fix: Klammern bei Signatur-Scoring in scoreTodayEntry

Stellt sicher, dass signSkipper und signCrew gemeinsam für den
Punktewert bei der Auswahl des Tageseintrags ausgewertet werden.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-03 17:30:46 +02:00
parent 9f76c200b0
commit 35ee705510
+1 -1
View File
@@ -154,7 +154,7 @@ export async function loadEntry(logbookId: string, entryId: string): Promise<Loa
function scoreTodayEntry(data: Record<string, unknown>): number {
const events = (data.events as unknown[] | undefined)?.length ?? 0
const signed = data.signSkipper || data.signCrew ? 1 : 0
const signed = (data.signSkipper || data.signCrew) ? 1 : 0
const destination = String(data.destination || '').trim() ? 1 : 0
return events * 10 + signed + destination
}