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

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