From 3faabc956faf4fddf0c9045555e53355b847abfa Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Mon, 2 Oct 2023 18:43:17 +0100 Subject: [PATCH] fix flip board not working the first time --- src/components/boards/BoardPlay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/boards/BoardPlay.tsx b/src/components/boards/BoardPlay.tsx index 5f51af37..614bf041 100644 --- a/src/components/boards/BoardPlay.tsx +++ b/src/components/boards/BoardPlay.tsx @@ -135,7 +135,7 @@ function BoardPlay({ type: "SET_HEADERS", payload: { ...headers, - orientation: headers.orientation === "white" ? "black" : "white", + orientation: headers.orientation === "black" ? "white" : "black", }, });