Skip to content

Commit 63bbca0

Browse files
committed
fix flow errors
1 parent 0d82b3f commit 63bbca0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/views/settings/sections/login-credentials.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import noop from 'lodash/noop'
1717
type Props = {
1818
initialUsername: string,
1919
initialPassword: string,
20-
state: LoginStateType,
20+
loginState: LoginStateType,
2121

2222
logIn: (username: string, password: string) => any,
2323
logOut: () => any,
@@ -43,9 +43,7 @@ class CredentialsLoginSection extends React.PureComponent<void, Props, State> {
4343
focusPassword = () => this._passwordInput.focus()
4444

4545
logIn = async () => {
46-
this.setState({loading: true})
4746
await this.props.logIn(this.state.username, this.state.password)
48-
this.setState({loading: false})
4947
}
5048

5149
logOut = () => {

0 commit comments

Comments
 (0)