add default score sort (last selected)
All checks were successful
Deploy Website / deploy (push) Successful in 5m1s

This commit is contained in:
Lee
2024-10-13 03:49:33 +01:00
parent 2a61ed26a6
commit ee212150fd
7 changed files with 59 additions and 31 deletions

View File

@ -1,7 +1,7 @@
import Dexie, { EntityTable } from "dexie";
import { setPlayerIdCookie } from "../website-utils";
import BeatSaverMap from "./types/beatsaver-map";
import Settings from "./types/settings";
import { setCookieValue } from "@/common/cookie-utils";
const SETTINGS_ID = "SSR"; // DO NOT CHANGE
@ -38,7 +38,7 @@ export default class Database extends Dexie {
if (settings == undefined || settings.playerId == undefined) {
return;
}
setPlayerIdCookie(settings.playerId);
await setCookieValue("playerId", settings.playerId);
});
}