aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx2
-rw-r--r--pages/user.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 71a83d3..266a3f4 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -104,7 +104,7 @@ function AccountBox(props: {
overflow: "hidden",
textOverflow: "ellipsis",
}}>{props.info?.username}</h2>
- <p style={{ marginTop: 6 }}>Score: 400</p>
+ <p style={{ marginTop: 6 }}>Score: {props.info?.rating}</p>
<p style={{ position: "absolute", bottom: 0, left: 0 }}>
<span style={{ color: "var(--disk-b-text)" }}>{props.sumGameInfo?.win} W</span>
<span style={{ margin: "0 3px" }}>/</span>
diff --git a/pages/user.tsx b/pages/user.tsx
index ac6f012..a79e353 100644
--- a/pages/user.tsx
+++ b/pages/user.tsx
@@ -286,7 +286,7 @@ export default function AccountPage() {
<InfoModule icon={<ArrowUpwardOutlinedIcon style={{ color: "var(--disk-b-text)" }}/>} label={ gameInfo?.totals.win + " keer gewonnen" }/>
<InfoModule icon={<Icon size={1} path={mdiEqual}/>} label={ gameInfo?.totals.draw + " keer gelijkspel" }/>
<InfoModule icon={<ArrowDownwardOutlinedIcon style={{ color: "var(--disk-a-text)" }}/>} label={ gameInfo?.totals.lose + " keer verloren" }/>
- <InfoModule icon={<Icon size={1} path={mdiClipboardTextOutline}/>} label="Score: 400"/>
+ <InfoModule icon={<Icon size={1} path={mdiClipboardTextOutline}/>} label={ "Score: " + user?.rating }/>
<InfoModule icon={<Icon size={1} path={mdiGamepadSquareOutline}/>} label={(() => {
var label = gameInfo?.totals.games.toString() + " ";
label += gameInfo?.totals.games == 1 ? "potje" : "potjes";