From 8440091fa72eecb3e4cba588ad16bc2bbfbe57e7 Mon Sep 17 00:00:00 2001 From: Giovanni Martire Date: Mon, 26 Aug 2024 20:10:25 +0200 Subject: [PATCH] reword mode to ruleset on object keys remaining --- app/actions.ts | 2 +- components/SubmitMatches/MatchForm/MatchForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions.ts b/app/actions.ts index 4d73945..503a3c0 100644 --- a/app/actions.ts +++ b/app/actions.ts @@ -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', diff --git a/components/SubmitMatches/MatchForm/MatchForm.tsx b/components/SubmitMatches/MatchForm/MatchForm.tsx index f3d7197..e9f1fb4 100644 --- a/components/SubmitMatches/MatchForm/MatchForm.tsx +++ b/components/SubmitMatches/MatchForm/MatchForm.tsx @@ -78,7 +78,7 @@ export default function MatchForm({
- {state?.errors?.mode} + {state?.errors?.ruleset}