Compare commits

..

No commits in common. "0fab52a16bd10ba90be0cbf89fc1a3fcd8a41aaa" and "6824575306b6b4c1a741ac2fd3c5b14415295285" have entirely different histories.

2 changed files with 2 additions and 14 deletions

View File

@ -93,7 +93,7 @@ export default async function Player({
<main>
<Container>
<Card className="mt-2">
<Error errorMessage="Failed to load player. Is the ID valid?" />
<Error errorMessage="Failed to load player. Is the is valid?" />
</Card>
</Container>
</main>

View File

@ -30,21 +30,9 @@ export default function Scores({
const router = useRouter();
const lastUsedSortType = settingsStore?.lastUsedSortType;
if (lastUsedSortType && lastUsedSortType != sortType) {
router.push(
`/player/${playerId}/scoresaber/${lastUsedSortType.value}/${page}`,
{
scroll: false,
},
);
}
function setPage(page: number, sortTypee?: SortType) {
if (sortTypee) {
if (sortTypee.value !== sortType.value) {
settingsStore?.setLastUsedSortType(sortTypee);
}
settingsStore?.setLastUsedSortType(sortTypee);
}
router.push(
`/player/${playerId}/scoresaber/${