From dea5713a5e5fa96aa0d51fd228f9b9d08fccde72 Mon Sep 17 00:00:00 2001
From: zkldi <20380519+zkldi@users.noreply.github.com>
Date: Wed, 22 Dec 2021 01:04:14 +0000
Subject: [PATCH] Add a quick patch to prevent crashing on incorrect UGS
Snapshot returns
---
client/package.json | 2 +-
.../dashboard/users/games/_game/_playtype/OverviewPage.tsx | 4 ++--
client/src/util/constants/version.ts | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/client/package.json b/client/package.json
index 67a199d56..e74cd4dc3 100644
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "tachi-client",
- "version": "2.0.5",
+ "version": "2.0.6",
"private": true,
"scripts": {
"start": "node scripts/start.js -o",
diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/OverviewPage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/OverviewPage.tsx
index 410f0fd07..7d31186d4 100644
--- a/client/src/app/pages/dashboard/users/games/_game/_playtype/OverviewPage.tsx
+++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/OverviewPage.tsx
@@ -303,8 +303,8 @@ function UserHistory({
} else if (mode === "ranking") {
return (
<>
- #{data[0].rankings[rating].ranking}
- /{data[0].rankings[rating].outOf}
+ #{data[0].rankings[rating]?.ranking ?? "ERR!"}
+ /{data[0].rankings[rating]?.outOf ?? "ERR!"}
>
);
}
diff --git a/client/src/util/constants/version.ts b/client/src/util/constants/version.ts
index 65f528e26..1b68ba547 100644
--- a/client/src/util/constants/version.ts
+++ b/client/src/util/constants/version.ts
@@ -1,6 +1,6 @@
const MAJOR = 2;
const MINOR = 0;
-const PATCH = 5;
+const PATCH = 6;
// As is with all front-facing zkldi projects, the version names for tachi-client
// are from an album I like. In this case, the album is The Cure - Disintegration.