summaryrefslogtreecommitdiff
path: root/front/src/context/auth_context.js
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-01-28 22:56:10 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-01-28 22:56:10 -0700
commit593a631a564926b5b118805b8bea13a753e4757d (patch)
tree3f2a5460eda4ef19142b20386c7dee001f4675b5 /front/src/context/auth_context.js
parentbb66cd91a3e76e9b746750de51b5edd34b5d2259 (diff)
downloadchessh-593a631a564926b5b118805b8bea13a753e4757d.tar.gz
chessh-593a631a564926b5b118805b8bea13a753e4757d.zip
Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes:
Diffstat (limited to 'front/src/context/auth_context.js')
-rw-r--r--front/src/context/auth_context.js2
1 files changed, 1 insertions, 1 deletions
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(() => {