diff --git a/simmadome/src/Game.tsx b/simmadome/src/Game.tsx index 95024f2..c9e47e1 100644 --- a/simmadome/src/Game.tsx +++ b/simmadome/src/Game.tsx @@ -1,6 +1,7 @@ import { GameState } from './GamesUtil'; import twemoji from 'twemoji'; import React, { useRef, useLayoutEffect } from 'react'; +import { Link } from 'react-router-dom'; import './Game.css'; import base_filled from './img/base_filled.png'; import base_empty from './img/base_empty.png'; @@ -56,7 +57,7 @@ function Game(props: {gameId: string, state : GameState}) {
{state.display_top_of_inning ? state.away_name : state.home_name} batting.
-
{state.leagueoruser} (share)
+
{state.leagueoruser} (share)
); diff --git a/simmadome/src/GamesPage.tsx b/simmadome/src/GamesPage.tsx index 236fc48..6273423 100644 --- a/simmadome/src/GamesPage.tsx +++ b/simmadome/src/GamesPage.tsx @@ -22,7 +22,7 @@ function GamesPage() { let gameList = useRef(new Array<(string | null)>()); let filterGames = games.filter((game, i) => filter === "" || game[1].leagueoruser === filter); - updateList(gameList.current, filterGames, searchparams.get('gameId')); + updateList(gameList.current, filterGames, searchparams.get('game')); return ( <>