From 590c349036ff0a4a568fb57f15bab941ed2ada00 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 10 Apr 2022 17:09:58 +0200 Subject: [PATCH] set window title --- resources/js/components/pages/Tournament.js | 1 + resources/js/components/pages/User.js | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/js/components/pages/Tournament.js b/resources/js/components/pages/Tournament.js index 440e53a..729e55d 100644 --- a/resources/js/components/pages/Tournament.js +++ b/resources/js/components/pages/Tournament.js @@ -32,6 +32,7 @@ const Tournament = () => { setError(null); setLoading(false); setTournament(sortParticipants(response.data)); + window.document.title = response.data.title; }) .catch(error => { setError(error); diff --git a/resources/js/components/pages/User.js b/resources/js/components/pages/User.js index 8dfdba4..bb26bfa 100644 --- a/resources/js/components/pages/User.js +++ b/resources/js/components/pages/User.js @@ -24,6 +24,7 @@ const User = () => { setError(null); setLoading(false); setUser(response.data); + window.document.title = response.data.nickname || response.data.username; }) .catch(error => { setError(error); -- 2.39.2