diff --git a/src/components/Board/MovesContainer.tsx b/src/components/Board/MovesContainer.tsx index 0578e8e..02671af 100644 --- a/src/components/Board/MovesContainer.tsx +++ b/src/components/Board/MovesContainer.tsx @@ -13,6 +13,7 @@ interface Props { highlightIndices?: number[] mobile?: boolean termination?: Termination + currentMaiaModel?: string } export const MovesContainer: React.FC = ({ @@ -21,6 +22,7 @@ export const MovesContainer: React.FC = ({ highlightIndices, mobile = false, termination, + currentMaiaModel, }: Props) => { const controller = useContext(GameControllerContext) const { isMobile } = useContext(WindowSizeContext) @@ -66,7 +68,8 @@ export const MovesContainer: React.FC = ({ let predictedWhite, predictedBlack if ('maiaEvaluations' in game) { - const evals = game.maiaEvaluations['maia_kdd_1100'] + const evals = + game.maiaEvaluations[currentMaiaModel ?? 'maia_kdd_1100'] const prevEvals = evals?.[prevMoveIndex] const whiteEvals = evals?.[whiteMoveIndex] diff --git a/src/pages/analysis/[...id].tsx b/src/pages/analysis/[...id].tsx index 4d9a49c..e125fae 100644 --- a/src/pages/analysis/[...id].tsx +++ b/src/pages/analysis/[...id].tsx @@ -552,6 +552,7 @@ const Analysis: React.FC = ({ game={analyzedGame} setCurrentMove={setCurrentMove} termination={analyzedGame.termination} + currentMaiaModel={currentMaiaModel} />
@@ -653,6 +654,7 @@ const Analysis: React.FC = ({ game={analyzedGame} setCurrentMove={setCurrentMove} termination={analyzedGame.termination} + currentMaiaModel={currentMaiaModel} />