]> git.localhorst.tv Git - alttp.git/commitdiff
link tournament by name if possible
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 20 Nov 2025 15:41:16 +0000 (16:41 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 20 Nov 2025 15:41:16 +0000 (16:41 +0100)
resources/js/components/users/Participation.jsx

index 9b7228e7f2a34f46024645f323af82641fdac4f7..fb1b56b33a4d0051df22c0544591e50281da5982 100644 (file)
@@ -44,7 +44,7 @@ const Participation = ({ user }) => {
                {user.participation.map(p => <tr key={p.id}>
                        <td>
                                <Button
-                                       onClick={() => navigate(`/tournaments/${p.tournament_id}`)}
+                                       onClick={() => navigate(`/tournaments/${p.tournament.name || p.tournament.id}`)}
                                        variant="link"
                                >
                                        {p.tournament.title}