diff --git a/app/src/ui/lib/sign-in.tsx b/app/src/ui/lib/sign-in.tsx index 208a1da62..e0861bf4b 100644 --- a/app/src/ui/lib/sign-in.tsx +++ b/app/src/ui/lib/sign-in.tsx @@ -41,7 +41,7 @@ export class SignIn extends React.Component { private renderEndpointEntryStep(state: IEndpointEntryState) { const children = this.props.children as ReadonlyArray | null - if (!children || !children.length) { + if (!children || (Array.isArray(children) && !children.length)) { console.error( 'unexpected child elements provided to EnterpriseServerEntry - someone should look into this!' ) @@ -60,7 +60,7 @@ export class SignIn extends React.Component { private renderAuthenticationStep(state: IAuthenticationState) { const children = this.props.children as ReadonlyArray | null - if (!children || !children.length) { + if (!children || (Array.isArray(children) && !children.length)) { console.error( 'unexpected child elements provided to AuthenticationForm - someone should look into this!' )