From 6a631744d9c80ff9a1a9f4b278bc0337ecdb494e Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:51:31 +0400 Subject: chore/frontend: semicolon linting (#287) --- frontend/src/App.tsx | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'frontend/src/App.tsx') diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index e7f225c..6ed103e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -52,8 +52,8 @@ const App: React.FC = () => { setIsModerator(false); } else { setProfile({} as UserProfile); // placeholder before we call actual user profile - _set_profile(get_user_id_from_token(token)) - const modStatus = get_user_mod_from_token(token) + _set_profile(get_user_id_from_token(token)); + const modStatus = get_user_mod_from_token(token); if (modStatus) { setIsModerator(true); } else { @@ -65,6 +65,46 @@ const App: React.FC = () => { React.useEffect(() => { _fetch_token(); _fetch_games(); + if (import.meta.env.DEV) { + setProfile({ + profile: true, + steam_id: "76561234567890123", + user_name: "test", + avatar_link: "", + country_code: "XD", + titles: [], + links: { + "p2sr": "", + "steam": "", + "twitch": "", + "youtube": "", + }, + rankings: { + "cooperative": { + "completion_count": 0, + "completion_total": 0, + "rank": 0, + }, + "singleplayer": { + "completion_count": 0, + "completion_total": 0, + "rank": 0, + }, + "overall": { + "completion_count": 0, + "completion_total": 0, + "rank": 0, + }, + }, + records: [], + pagination: { + "current_page": 0, + "page_size": 0, + "total_pages": 0, + "total_records": 0, + }, + } as UserProfile); + }; }, []); return ( -- cgit v1.2.3