From c6be828035743a292504d6f705ccf3ecad40c1eb Mon Sep 17 00:00:00 2001
From: Kalle <38327916+Sendouc@users.noreply.github.com>
Date: Tue, 6 Jun 2023 21:23:27 +0300
Subject: [PATCH] Temporary handling of new discord names
---
app/routes/u.$identifier/index.tsx | 19 ++++++++++++++++---
app/utils/strings.ts | 10 ++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/app/routes/u.$identifier/index.tsx b/app/routes/u.$identifier/index.tsx
index 12ed2a0f4..a784763e9 100644
--- a/app/routes/u.$identifier/index.tsx
+++ b/app/routes/u.$identifier/index.tsx
@@ -12,7 +12,11 @@ import { Image, WeaponImage } from "~/components/Image";
import { useTranslation } from "~/hooks/useTranslation";
import { modesShort } from "~/modules/in-game-lists";
import { type SendouRouteHandle } from "~/utils/remix";
-import { rawSensToString } from "~/utils/strings";
+import {
+ capitalize,
+ isNewDiscordUniqueName,
+ rawSensToString,
+} from "~/utils/strings";
import type { Unpacked } from "~/utils/types";
import { assertUnreachable } from "~/utils/types";
import {
@@ -39,10 +43,19 @@ export default function UserInfoPage() {