Skip to content

Commit 03bde03

Browse files
fix(overmind): weird JS interpretation on ternary expression
1 parent 12d2b9e commit 03bde03

File tree

1 file changed

+5
-4
lines changed
  • packages/node_modules/overmind/src

1 file changed

+5
-4
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ export class Overmind<Config extends Configuration> implements Configuration {
195195
) {
196196
const host =
197197
options.devtools === true ? 'localhost:3031' : options.devtools
198-
const name =
199-
options.name || typeof document === 'undefined'
200-
? 'NoName'
201-
: document.title || 'NoName'
198+
const name = options.name
199+
? options.name
200+
: typeof document === 'undefined'
201+
? 'NoName'
202+
: document.title || 'NoName'
202203

203204
this.initializeDevtools(host, name, eventHub, proxyStateTree)
204205
} else {

0 commit comments

Comments
 (0)