From 7295d7852339703ceef72d955a5cf81ae5b4ac87 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Fri, 13 Jan 2017 11:13:28 -0700 Subject: [PATCH] typos --- client/coral-framework/helpers/validate.js | 2 +- client/coral-sign-in/components/SignDialog.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/coral-framework/helpers/validate.js b/client/coral-framework/helpers/validate.js index 80efb1b1f..7aa4ccc72 100644 --- a/client/coral-framework/helpers/validate.js +++ b/client/coral-framework/helpers/validate.js @@ -1,6 +1,6 @@ export default { email: email => (/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(email)), - password: pass => (/^(?=.{8,}).*$/.test(pass)), + password: pass => !(/^(?=.{8,}).*$/.test(pass)), confirmPassword: () => true, displayName: displayName => (/^[a-z0-9_]+$/.test(displayName)) }; diff --git a/client/coral-sign-in/components/SignDialog.js b/client/coral-sign-in/components/SignDialog.js index 966870293..876d1ea82 100644 --- a/client/coral-sign-in/components/SignDialog.js +++ b/client/coral-sign-in/components/SignDialog.js @@ -3,7 +3,7 @@ import {Dialog} from 'coral-ui'; import styles from './styles.css'; import SignInContent from './SignInContent'; -import SingUpContent from './SignUpContent'; +import SignUpContent from './SignUpContent'; import ForgotContent from './ForgotContent'; const SignDialog = ({open, view, handleClose, offset, ...props}) => ( @@ -17,7 +17,7 @@ const SignDialog = ({open, view, handleClose, offset, ...props}) => ( }}> × {view === 'SIGNIN' && } - {view === 'SIGNUP' && } + {view === 'SIGNUP' && } {view === 'FORGOT' && } );