From b7357033185f859521f9d2d7ae582eba3696063f Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Wed, 25 Oct 2023 07:16:27 -0600 Subject: [PATCH] Cover one more untagged annul reason, premature timeout --- src/views/Game/PlayControls.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/Game/PlayControls.tsx b/src/views/Game/PlayControls.tsx index 9c524ba644..5172f945ae 100644 --- a/src/views/Game/PlayControls.tsx +++ b/src/views/Game/PlayControls.tsx @@ -321,7 +321,11 @@ export function PlayControls({ )} @@ -1316,7 +1320,7 @@ function currentPlayer(goban: Goban): number { function AnnulmentReason({ reason, }: null | { - reason: rest_api.AnnulmentReason | { cancellation: true }; + reason: rest_api.AnnulmentReason | { cancellation?: true; premature_timeout?: true }; }): JSX.Element { if (!reason) { return null; @@ -1363,6 +1367,13 @@ function AnnulmentReason({ case "cancellation": arr.push(
{_("The game was canceled so will not be rated.")}
); break; + case "premature_timeout": + arr.push( +
+ {_("Not enough moves were made for this game to be rated.")} +
, + ); + break; default: arr.push(
{key}
); break;