From 3ecc2a4bcf39a1d51132ad5819dfd32a84407a36 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 1 Dec 2021 00:56:29 +0000 Subject: [PATCH 1/2] fix self-stats always showing 0 in cmpr --- .../src/components/user/UGPTStatContainer.tsx | 1 + .../src/components/user/UGPTStatShowcase.tsx | 44 ++++++++++++------- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/client/src/components/user/UGPTStatContainer.tsx b/client/src/components/user/UGPTStatContainer.tsx index 4f2b57584..1b46d4853 100644 --- a/client/src/components/user/UGPTStatContainer.tsx +++ b/client/src/components/user/UGPTStatContainer.tsx @@ -72,6 +72,7 @@ export default function UGPTStatContainer({ return ( - + {user && user.id !== reqUser.id && ( + + )} ); @@ -426,14 +434,16 @@ export function StatDisplay({ /{result.outOf} - + {user && user.id !== reqUser.id && ( + + )} ); From b85046fae80a17b84ac64d8a37a3085f4fa4b103 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:19:14 +0000 Subject: [PATCH 2/2] Fix stats0ing again --- client/src/components/user/UGPTStatShowcase.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/user/UGPTStatShowcase.tsx b/client/src/components/user/UGPTStatShowcase.tsx index d6808003e..aa141fc6b 100644 --- a/client/src/components/user/UGPTStatShowcase.tsx +++ b/client/src/components/user/UGPTStatShowcase.tsx @@ -228,6 +228,7 @@ export default function UGPTStatShowcase({ className="col-12 col-md-4 d-flex align-items-stretch mt-8" >