From d9e8161a64e8249230ab149dc15ca34df4836a1f Mon Sep 17 00:00:00 2001 From: Michael Ficocelli Date: Wed, 5 Jun 2024 18:27:27 -0400 Subject: [PATCH] IPVGO: Fix mismatch in board size options on save loader [save corruption bugfix] (#1355) --- src/Go/Constants.ts | 2 +- src/Go/ui/GoSubnetSearch.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Go/Constants.ts b/src/Go/Constants.ts index ff6a4e0a7..d0f6fb3de 100644 --- a/src/Go/Constants.ts +++ b/src/Go/Constants.ts @@ -68,7 +68,7 @@ export const opponentDetails = { }, }; -export const boardSizes = [5, 7, 9, 13]; +export const boardSizes = [5, 7, 9, 13, 19]; export const columnIndexes = "ABCDEFGHJKLMNOPQRSTUVWXYZ"; diff --git a/src/Go/ui/GoSubnetSearch.tsx b/src/Go/ui/GoSubnetSearch.tsx index 8853c09d6..40ad0be59 100644 --- a/src/Go/ui/GoSubnetSearch.tsx +++ b/src/Go/ui/GoSubnetSearch.tsx @@ -18,6 +18,7 @@ interface IProps { cancel: () => void; showInstructions: () => void; } +const boardSizeOptions = boardSizes.filter((size) => size !== 19); export const GoSubnetSearch = ({ open, search, cancel, showInstructions }: IProps): React.ReactElement => { const classes = boardStyles(); @@ -88,7 +89,7 @@ export const GoSubnetSearch = ({ open, search, cancel, showInstructions }: IProp ???? ) : (