From 998ccef186fd077362feb7dbc613132e347d88a9 Mon Sep 17 00:00:00 2001
From: zkldi <20380519+zkldi@users.noreply.github.com>
Date: Tue, 17 Oct 2023 16:25:31 +0100
Subject: [PATCH] fix: make the keyboard/other distinction clearer for usc
---
client/src/app/pages/dashboard/import/USCIRPage.tsx | 5 ++++-
common/src/utils/util.ts | 4 ++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/client/src/app/pages/dashboard/import/USCIRPage.tsx b/client/src/app/pages/dashboard/import/USCIRPage.tsx
index fda678b07..a6e7e4b89 100644
--- a/client/src/app/pages/dashboard/import/USCIRPage.tsx
+++ b/client/src/app/pages/dashboard/import/USCIRPage.tsx
@@ -24,7 +24,10 @@ export default function USCIRPage() {
Fill out IR Base URL with {ToServerURL("/ir/usc/Controller")}.
{ToServerURL("/ir/usc/Keyboard")}.
diff --git a/common/src/utils/util.ts b/common/src/utils/util.ts
index d76dc2b3a..173ade58d 100644
--- a/common/src/utils/util.ts
+++ b/common/src/utils/util.ts
@@ -108,6 +108,10 @@ export function FormatGame(game: Game, playtype: Playtypes[Game]): string {
return gameConfig.name;
}
+ if (game === "usc" && playtype === "Keyboard") {
+ return `${gameConfig.name} (Keyboard/Other)`;
+ }
+
return `${gameConfig.name} (${playtype})`;
}