diff options
| author | Mel <einebeere@gmail.com> | 2022-02-19 20:01:14 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-02-19 20:01:14 +0100 |
| commit | d7289fe2b076616353d12e628051831bab7d55ac (patch) | |
| tree | e35472b9ac6155120e0703ea3c8d5edfd2875b7c /assets/src | |
| parent | bf1450799df0deb424a9675be89e13c29e3620d7 (diff) | |
| download | rook-d7289fe2b076616353d12e628051831bab7d55ac.tar.zst rook-d7289fe2b076616353d12e628051831bab7d55ac.zip | |
Flip wrong conditional when setting client type
Diffstat (limited to 'assets/src')
| -rw-r--r-- | assets/src/state/constant_state.ts | 2 |
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."); |
