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

@ -2,12 +2,12 @@
import { CheckIcon } from "@heroicons/react/24/solid";
import { useLiveQuery } from "dexie-react-hooks";
import { setPlayerIdCookie } from "@/common/website-utils";
import useDatabase from "../../hooks/use-database";
import { useToast } from "@/hooks/use-toast";
import Tooltip from "../tooltip";
import { Button } from "../ui/button";
import { revalidatePath } from "next/cache";
import { setCookieValue } from "@/common/cookie-utils";
type Props = {
/**
@ -28,7 +28,7 @@ export default function ClaimProfile({ playerId }: Props) {
const settings = await database.getSettings();
settings?.setPlayerId(playerId);
setPlayerIdCookie(playerId);
await setCookieValue("playerId", playerId);
toast({
title: "Profile Claimed",
description: "You have claimed this profile.",