open last game tab by default

This commit is contained in:
2025-05-11 11:04:06 +02:00
parent 4b9cb30309
commit 79ff096b59

View File

@@ -545,7 +545,7 @@ export default function LogParser() {
// Generate a default tab value using determined names or fallbacks
const defaultTabValue =
parsedGames.length > 0
? `game-${parsedGames![0]!.id}-${parsedGames![0]!.logOwnerName || 'LogOwner'}-vs-${parsedGames![0]!.opponentName || 'Opponent'}`
? `game-${parsedGames!.at(-1)!.id}-${parsedGames!.at(-1)!.logOwnerName || 'LogOwner'}-vs-${parsedGames!.at(-1)!.opponentName || 'Opponent'}`
: ''
return (