fix eslint
All checks were successful
Deploy / deploy (push) Successful in 2m41s

This commit is contained in:
Lee 2024-09-28 14:44:32 +01:00
parent 53b51582b2
commit 4acc4c4406
2 changed files with 2 additions and 4 deletions

@ -12,9 +12,7 @@ export async function GET(request: NextRequest) {
}
await connectMongo(); // Connect to Mongo
// Fetch the player and return their statistic history
let foundPlayer: IPlayer | null = await PlayerModel.findById(id);
const foundPlayer: IPlayer | null = await PlayerModel.findById(id);
const response: { tracked: boolean; lastTracked?: string } = {
tracked: foundPlayer != null,
};

@ -129,7 +129,7 @@ export default function PlayerScores({
"",
newUrl,
);
}, [pageState, debouncedSearchTerm, player.id]);
}, [pageState, debouncedSearchTerm, player.id, isSearchActive]);
const handleSearchChange = (query: string) => {
setSearchState({ query });