From 8530b0fcc5b8c783d76d352526fc6bdc64c92613 Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Thu, 21 Mar 2024 01:03:06 +0000 Subject: [PATCH] format --- src/components/panels/practice/PracticePanel.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/panels/practice/PracticePanel.tsx b/src/components/panels/practice/PracticePanel.tsx index 4c2f2d41..daed1f9e 100644 --- a/src/components/panels/practice/PracticePanel.tsx +++ b/src/components/panels/practice/PracticePanel.tsx @@ -124,7 +124,11 @@ function PracticePanel({ fen }: { fen: string }) { thickness={10} label={ - {stats.total === 0 ? '0%' : `${Math.round((stats.practiced / stats.total) * 100)}%`} + {stats.total === 0 + ? "0%" + : `${Math.round( + (stats.practiced / stats.total) * 100, + )}%`} } sections={[