about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-02-19 20:01:14 +0100
committerMel <einebeere@gmail.com>2022-02-19 20:01:14 +0100
commitd7289fe2b076616353d12e628051831bab7d55ac (patch)
treee35472b9ac6155120e0703ea3c8d5edfd2875b7c
parentbf1450799df0deb424a9675be89e13c29e3620d7 (diff)
downloadrook-d7289fe2b076616353d12e628051831bab7d55ac.tar.zst
rook-d7289fe2b076616353d12e628051831bab7d55ac.zip
Flip wrong conditional when setting client type
-rw-r--r--assets/src/state/constant_state.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/src/state/constant_state.ts b/assets/src/state/constant_state.ts
index aeda86e..14a187d 100644
--- a/assets/src/state/constant_state.ts
+++ b/assets/src/state/constant_state.ts
@@ -5,7 +5,7 @@ import { RookType } from "../models/rook_type";
 let clientType: RookType = null;
 
 export function setClientType(type: RookType) {
-    if (clientType !== null) {
+    if (clientType === null) {
         clientType = type;
     } else {
         throw new Error("Tried changing client type after initialization.");