Skip to content

Commit

Permalink
Merge pull request #216 from osu-tournament-rating/fix/mode-to-ruleset
Browse files Browse the repository at this point in the history
Reword mode to ruleset
  • Loading branch information
hburn7 authored Aug 27, 2024
2 parents fade233 + 8440091 commit 3bf3cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export async function fetchLeaderboard(params: {}) {
let backendString = new URLSearchParams(backendObject).toString();

let data = await fetch(
`${process.env.REACT_APP_API_URL}/leaderboards?mode=${osuMode}&${backendString}`,
`${process.env.REACT_APP_API_URL}/leaderboards?ruleset=${osuMode}&${backendString}`,
{
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion components/SubmitMatches/MatchForm/MatchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function MatchForm({
<div className={styles.field}>
<label htmlFor="gameMode">Game mode</label>
<span className={styles.inputError}>
{state?.errors?.mode}
{state?.errors?.ruleset}
</span>
<select name="gameMode" id={styles.gamemode} required={true}>
<option value={0}>osu!</option>
Expand Down

0 comments on commit 3bf3cb2

Please sign in to comment.