mirror of
https://github.com/ershisan99/www.git
synced 2025-12-18 05:19:23 +00:00
open last game tab by default
This commit is contained in:
@@ -545,7 +545,7 @@ export default function LogParser() {
|
|||||||
// Generate a default tab value using determined names or fallbacks
|
// Generate a default tab value using determined names or fallbacks
|
||||||
const defaultTabValue =
|
const defaultTabValue =
|
||||||
parsedGames.length > 0
|
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 (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user