Skip to content

Commit 5ebddcb

Browse files
committed
fix(aws-amplify-react): the username should not be undefined
1 parent f9bd5e9 commit 5ebddcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-amplify-react/src/Auth/SignIn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default class SignIn extends AuthPiece {
6767
// avoid submitting the form
6868
event.preventDefault();
6969

70-
const { username, password } = this.inputs;
70+
const { username='', password } = this.inputs;
7171
if (!Auth || typeof Auth.signIn !== 'function') {
7272
throw new Error('No Auth module found, please ensure @aws-amplify/auth is imported');
7373
}

0 commit comments

Comments
 (0)