show percentage
All checks were successful
deploy / deploy (push) Successful in 56s

This commit is contained in:
Lee 2023-10-20 19:43:54 +01:00
parent 206f19926d
commit ae96719976
2 changed files with 11 additions and 5 deletions

@ -1,4 +1,4 @@
import type { Metadata } from "next";
import { Metadata } from "next";
import { Inter } from "next/font/google";
import Image from "next/image";
import "./globals.css";
@ -11,9 +11,10 @@ export const metadata: Metadata = {
default: "Scoresaber Reloaded",
},
openGraph: {
title: "Scoresaber Reloaded",
description: "SSR is a new way to view your scoresaber profile. (in dev)",
url: "https://ssrdev.fascinated.cc",
title: "Next.js",
description: "The React Framework for the Web",
url: "https://nextjs.org",
siteName: "Next.js",
locale: "en_US",
type: "website",
},

@ -248,7 +248,12 @@ export default function Player({ params }: { params: { id: string } }) {
/>
)}
<ScoreStatLabel
value={score.modifiedScore.toFixed(0)}
value={
(
(score.baseScore / leaderboard.maxScore) *
100
).toFixed(2) + "%"
}
/>
</div>
</div>