diff --git a/client/package.json b/client/package.json
index 4caebd8f6..bb6d8080e 100644
--- a/client/package.json
+++ b/client/package.json
@@ -7,7 +7,8 @@
"start": "vite",
"build": "vite build",
"lint": "eslint src --fix",
- "preview": "vite build && vite preview"
+ "preview": "vite build && vite preview",
+ "typecheck": "tsc -b"
},
"browserslist": {
"production": [
diff --git a/client/src/app/pages/dashboard/DashboardPage.tsx b/client/src/app/pages/dashboard/DashboardPage.tsx
index 4ccb3b85f..2144519fa 100644
--- a/client/src/app/pages/dashboard/DashboardPage.tsx
+++ b/client/src/app/pages/dashboard/DashboardPage.tsx
@@ -199,8 +199,8 @@ function UserGameStatsInfo({ user }: { user: UserDocument }) {
const gameConfig = GetGameConfig(a.game);
return (
- gameConfig.validPlaytypes.indexOf(a.playtype) -
- gameConfig.validPlaytypes.indexOf(b.playtype)
+ gameConfig.playtypes.indexOf(a.playtype) -
+ gameConfig.playtypes.indexOf(b.playtype)
);
}
diff --git a/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx b/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx
index cc062327f..6805b69d5 100644
--- a/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx
+++ b/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx
@@ -4,15 +4,20 @@ import { SelectRightChart } from "util/misc";
import { MillisToSince } from "util/time";
import useSetSubheader from "components/layout/header/useSetSubheader";
import Card from "components/layout/page/Card";
-import LampCell from "components/tables/cells/LampCell";
-import ScoreCell from "components/tables/cells/ScoreCell";
import MiniTable from "components/tables/components/MiniTable";
+import TargetInfo from "components/tables/dropdowns/components/TargetInfo";
+import ScoreCoreCells from "components/tables/game-core-cells/ScoreCoreCells";
import PBTable from "components/tables/pbs/PBTable";
import ProfilePicture from "components/user/ProfilePicture";
import ApiError from "components/util/ApiError";
+import Divider from "components/util/Divider";
import Icon from "components/util/Icon";
import Loading from "components/util/Loading";
import Muted from "components/util/Muted";
+import SelectLinkButton from "components/util/SelectLinkButton";
+import useApiQuery from "components/util/query/useApiQuery";
+import useLUGPTSettings from "components/util/useLUGPTSettings";
+import { TargetsContext } from "context/TargetsContext";
import { UserContext } from "context/UserContext";
import React, { useContext, useMemo, useState } from "react";
import { Col, Row } from "react-bootstrap";
@@ -23,10 +28,10 @@ import {
FormatDifficulty,
GetGameConfig,
GetGamePTConfig,
- integer,
PBScoreDocument,
- UserDocument,
SongDocument,
+ UserDocument,
+ integer,
} from "tachi-common";
import {
ChartPBLeaderboardReturn,
@@ -36,12 +41,6 @@ import {
} from "types/api-returns";
import { GamePT, SetState } from "types/react";
import { PBDataset } from "types/tables";
-import useLUGPTSettings from "components/util/useLUGPTSettings";
-import TargetInfo from "components/tables/dropdowns/components/TargetInfo";
-import useApiQuery from "components/util/query/useApiQuery";
-import Divider from "components/util/Divider";
-import { TargetsContext } from "context/TargetsContext";
-import SelectLinkButton from "components/util/SelectLinkButton";
// This component forms a wrapper around the Real GPT Chart Page
// which handles the case where activeChart == null.
@@ -206,7 +205,7 @@ function InternalGPTChartPage({
)}
-
- )}
+