Skip to content

Commit

Permalink
Show more notifications by default
Browse files Browse the repository at this point in the history
Make the notification list start out with 50 notifications rather than 10.
  • Loading branch information
iamlogand committed Mar 15, 2024
1 parent 6164f35 commit edaea6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/GamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const GamePage = (props: GamePageProps) => {
}, [props.gameId, setAllSecrets, fetchData])

const fetchNotifications = useCallback(async () => {
const minIndex = -10 // Fetch the last 10 notifications
const minIndex = -50 // Fetch the last 50 notifications
const maxIndex = -1
const url = `action-logs/?game=${props.gameId}&min_index=${minIndex}&max_index=${maxIndex}`
fetchData(
Expand Down

0 comments on commit edaea6e

Please sign in to comment.