Skip to content

Commit

Permalink
fix bad merge that undid
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolodavis committed Apr 14, 2020
1 parent d04244d commit 44d0d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/turn-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ export function UpdateTurnOrderState(
const ctxWithAPI = plugin.EnhanceCtx(state);
const t = order.next(G, ctxWithAPI);
const type = typeof t;
if (type !== 'number') {
if (t !== undefined && type !== 'number') {
logging.error(
`invalid value returned by turn.order.next — expected number got ${type}${t}”.`
`invalid value returned by turn.order.next — expected number or undefined got ${type}${t}”.`
);
}

Expand Down

0 comments on commit 44d0d4f

Please sign in to comment.