Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 29, 2024
1 parent d69b040 commit d4d5ee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion api/storeGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ async function guess(req, res) {
}

// Limit to 1 request per 5 seconds over a minute, generous limit but better than nothing
export default ratelimiter(guess, 12, 60000)
// export default ratelimiter(guess, 12, 60000)
// no rate limit
export default guess;
4 changes: 2 additions & 2 deletions components/maps/mapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export default function MapView({ inLegacy, gameOptions, setGameOptions, singlep
<MapTile
key={i + index}
map={tileMap}
canHeart={session?.token?.secret && heartingMap !== map.id}
canHeart={session?.token?.secret && heartingMap !== mapsArray[i + index].id}
onClick={() => onMapClick(tileMap)}
country={tileMap.countryMap}
searchTerm={searchTerm}
Expand Down Expand Up @@ -435,7 +435,7 @@ export default function MapView({ inLegacy, gameOptions, setGameOptions, singlep
});
}}
onHeart={() => {
heartMap(map);
heartMap(mapsArray[i + index]);
}}
/>
))}
Expand Down

0 comments on commit d4d5ee3

Please sign in to comment.