diff --git a/src/views/Game/PlayControls.tsx b/src/views/Game/PlayControls.tsx
index 7018df3317..9c524ba644 100644
--- a/src/views/Game/PlayControls.tsx
+++ b/src/views/Game/PlayControls.tsx
@@ -317,7 +317,14 @@ export function PlayControls({
pgettext("Displayed to the user when the game is annulled", "Game Annulled")}
{annulled && }
- {annulled && annulment_reason && }
+ {annulled && (
+
+ )}
{((phase === "play" &&
mode === "play" &&
@@ -1306,7 +1313,11 @@ function currentPlayer(goban: Goban): number {
return ret;
}
-function AnnulmentReason({ reason }: { reason: rest_api.AnnulmentReason }): JSX.Element {
+function AnnulmentReason({
+ reason,
+}: null | {
+ reason: rest_api.AnnulmentReason | { cancellation: true };
+}): JSX.Element {
if (!reason) {
return null;
}
@@ -1349,6 +1360,9 @@ function AnnulmentReason({ reason }: { reason: rest_api.AnnulmentReason }): JSX.
// modern games.
arr.push(
Handicap out of range
);
break;
+ case "cancellation":
+ arr.push({_("The game was canceled so will not be rated.")}
);
+ break;
default:
arr.push({key}
);
break;