Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cdietschrun committed Jan 1, 2024
1 parent 07b4ef0 commit 937c38d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main_goodplays.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- uses: actions/[email protected]

- name: Set up Node.js version
uses: actions/setup-node@v3.8.1
uses: actions/setup-node@v4.0.1
with:
node-version: '18.x'
node-version: '20.x'

- name: npm install, build, and test
run: |
Expand Down
14 changes: 8 additions & 6 deletions client/src/components/GameSessionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ const GameSessionList: React.FC = () => {
const [search, setSearch] = useState("");
const [searchResults, setSearchResults] = useState(gameSessions);

const fuseOptions = {
keys: ['gameName'],
includeScore: true,
threshold: 0.3,
};
const fuse = new Fuse(gameSessions, fuseOptions);

useEffect(() => {
const fuseOptions = {
keys: ['gameName'],
includeScore: true,
threshold: 0.3,
};
const fuse = new Fuse(gameSessions, fuseOptions);

if (search === '') {
setSearchResults(gameSessions);
} else {
Expand Down

0 comments on commit 937c38d

Please sign in to comment.