From 14bbc483fdb338c8e55e77f267ecf0d51415549b Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Mon, 22 Jul 2024 04:44:31 +0900
Subject: prettier

---
 frontend/src/routes/golf/play/apps/Finished.tsx | 27 +++++++++++--------------
 1 file changed, 12 insertions(+), 15 deletions(-)

(limited to 'frontend/src/routes/golf/play/apps/Finished.tsx')

diff --git a/frontend/src/routes/golf/play/apps/Finished.tsx b/frontend/src/routes/golf/play/apps/Finished.tsx
index 9922e07..bad7526 100644
--- a/frontend/src/routes/golf/play/apps/Finished.tsx
+++ b/frontend/src/routes/golf/play/apps/Finished.tsx
@@ -1,30 +1,27 @@
 type Props = {
   gameId: number;
   playerId: number;
-  result: { yourScore: number | null, opponentScore: number | null };
+  result: { yourScore: number | null; opponentScore: number | null };
 };
 
 export default ({ result }: Props) => {
   const { yourScore, opponentScore } = result;
   const yourScoreToCompare = yourScore ?? Infinity;
   const opponentScoreToCompare = opponentScore ?? Infinity;
-  const resultText = yourScoreToCompare === opponentScoreToCompare ? '引き分け' : (yourScoreToCompare < opponentScoreToCompare ? 'あなたの勝ち' : 'あなたの負け');
+  const resultText =
+    yourScoreToCompare === opponentScoreToCompare
+      ? "引き分け"
+      : yourScoreToCompare < opponentScoreToCompare
+        ? "あなたの勝ち"
+        : "あなたの負け";
   return (
     <>
+      <div>対戦終了</div>
       <div>
-        対戦終了
-      </div>
-      <div>
-        <div>
-          {resultText}
-        </div>
-        <div>
-          あなたのスコア: {yourScore ?? 'なし'}
-        </div>
-        <div>
-          相手のスコア: {opponentScore ?? 'なし'}
-        </div>
+        <div>{resultText}</div>
+        <div>あなたのスコア: {yourScore ?? "なし"}</div>
+        <div>相手のスコア: {opponentScore ?? "なし"}</div>
       </div>
     </>
   );
-}
+};
-- 
cgit v1.3.1

