IPVGO: Fix mismatch in board size options on save loader [save corruption bugfix] (#1355)

This commit is contained in:
Michael Ficocelli 2024-06-05 18:27:27 -04:00 committed by GitHub
parent 653d531d0a
commit d9e8161a64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

@ -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";

@ -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
<Typography>????</Typography>
) : (
<Select value={`${boardSize}`} onChange={changeBoardSize} sx={{ mr: 1 }}>
{boardSizes.map((size) => (
{boardSizeOptions.map((size) => (
<MenuItem key={size} value={size}>
{size}x{size}
</MenuItem>