Skip to content

Commit

Permalink
fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Jul 3, 2017
1 parent c90e2cb commit 95f4bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/ui/lib/sign-in.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class SignIn extends React.Component<ISignInProps, {}> {

private renderEndpointEntryStep(state: IEndpointEntryState) {
const children = this.props.children as ReadonlyArray<JSX.Element> | 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!'
)
Expand All @@ -60,7 +60,7 @@ export class SignIn extends React.Component<ISignInProps, {}> {

private renderAuthenticationStep(state: IAuthenticationState) {
const children = this.props.children as ReadonlyArray<JSX.Element> | 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!'
)
Expand Down

0 comments on commit 95f4bf4

Please sign in to comment.