Skip to content

Commit

Permalink
fix(frontend): show openings even if multiple are possible
Browse files Browse the repository at this point in the history
  • Loading branch information
DecentM committed Dec 24, 2023
1 parent 50e962a commit a702809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/src/hooks/board-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useBoardWorker = (input: UseBoardWorkerInput) => {
moveHistoryAst.value = message.moveHistoryAst
squares.value = message.squares

if (message.openings.length === 1) {
if (message.openings.length !== 0) {
opening.value = message.openings[0]
}

Expand Down

0 comments on commit a702809

Please sign in to comment.