From 593a631a564926b5b118805b8bea13a753e4757d Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 28 Jan 2023 22:56:10 -0700 Subject: Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes: --- front/src/context/auth_context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'front/src/context') diff --git a/front/src/context/auth_context.js b/front/src/context/auth_context.js index e78b0c5..748b10d 100644 --- a/front/src/context/auth_context.js +++ b/front/src/context/auth_context.js @@ -31,7 +31,7 @@ export const AuthProvider = ({ children }) => { fetch("/api/player/logout", { method: "GET", credentials: "same-origin", - }).then(() => setDefaults()); + }).then(setDefaults); useEffect(() => { setTimeout(() => { -- cgit v1.3