Compare commits
No commits in common. "0fab52a16bd10ba90be0cbf89fc1a3fcd8a41aaa" and "6824575306b6b4c1a741ac2fd3c5b14415295285" have entirely different histories.
0fab52a16b
...
6824575306
@ -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>
|
||||
|
@ -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/${
|
||||
|
Loading…
x
Reference in New Issue
Block a user