Skip to content

Commit

Permalink
wip(engine): simplify expression for mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdartus committed Mar 3, 2020
1 parent da4f42e commit 959fda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@lwc/engine/src/framework/wc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function buildCustomElementConstructor(
): HTMLElementConstructor {
const { props, bridge: BaseElement } = getComponentDef(Ctor);
const mode =
!isUndefined(options) && !isUndefined(options.mode) && options.mode !== 'closed'
isUndefined(options) || isUndefined(options.mode) || options.mode !== 'closed'
? 'open'
: 'closed';

Expand Down

0 comments on commit 959fda0

Please sign in to comment.