about summary refs log tree commit diff
diff options
context:
space:
mode:
-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.");